summaryrefslogtreecommitdiff
path: root/src/u8c/u32cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/u8c/u32cp.c')
-rw-r--r--src/u8c/u32cp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/u8c/u32cp.c b/src/u8c/u32cp.c
index 6b00021..978b445 100644
--- a/src/u8c/u32cp.c
+++ b/src/u8c/u32cp.c
@@ -20,7 +20,7 @@
# include <u8c/SIZE_C.h>
# include <u8c/u32cp.h>
# include <u8c/u32sz.h>
-uint_least8_t u8c_u32cp(size_t * const restrict _sz,uint_least32_t * restrict * const restrict _out,uint_least32_t * const restrict _in) {
+uint_least8_t u8c_u32cp(size_t * const _sz,uint_least32_t * * const _out,uint_least32_t * const _in) {
assert(_in != NULL);
size_t insz = SIZE_C(0x0);
u8c_u32sz(&insz,_in);
@@ -31,9 +31,10 @@ uint_least8_t u8c_u32cp(size_t * const restrict _sz,uint_least32_t * restrict *
if((*_out = calloc(sizeof(uint_least32_t),insz)) == NULL) {
u8c_seterr((uint_least32_t[]){UINT32_C(0x75),UINT32_C(0x38),UINT32_C(0x63),UINT32_C(0x5F),UINT32_C(0x75),UINT32_C(0x33),UINT32_C(0x32),UINT32_C(0x63),UINT32_C(0x70),UINT32_C(0x3A),UINT32_C(0x20),UINT32_C(0x55),UINT32_C(0x6E),UINT32_C(0x61),UINT32_C(0x62),UINT32_C(0x6C),UINT32_C(0x65),UINT32_C(0x20),UINT32_C(0x74),UINT32_C(0x6F),UINT32_C(0x20),UINT32_C(0x61),UINT32_C(0x6C),UINT32_C(0x6C),UINT32_C(0x6F),UINT32_C(0x63),UINT32_C(0x61),UINT32_C(0x74),UINT32_C(0x65),UINT32_C(0x20),UINT32_C(0x72),UINT32_C(0x65),UINT32_C(0x73),UINT32_C(0x6F),UINT32_C(0x75),UINT32_C(0x72),UINT32_C(0x63),UINT32_C(0x65),UINT32_C(0x73),UINT32_C(0x2E),UINT32_C(0x0),}); /* u8c_u32cp: Unable to allocate resources. */
return UINT8_C(0x1);
- }
+ }uint_least32_t * const out = *_out;
for(register size_t n = SIZE_C(0x0);n < insz;n += SIZE_C(0x1)) {
- (*_out)[n] = _in[n];
+ out[n] = _in[n];
}
+ *_out = out;
return UINT8_C(0x0);
}