modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/pr59119.c (about) 1 extern void *memmove (void *, const void *, __SIZE_TYPE__); 2 extern void *memset (void *, int, __SIZE_TYPE__); 3 4 typedef struct { 5 long n_prefix; 6 long n_spadding; 7 } NumberFieldWidths; 8 9 void 10 fill_number(char *buf, const NumberFieldWidths *spec) 11 { 12 if (spec->n_prefix) { 13 memmove(buf, 14 (char *) 0, 15 spec->n_prefix * sizeof(char)); 16 buf += spec->n_prefix; 17 } 18 if (spec->n_spadding) { 19 memset(buf, 0, spec->n_spadding); 20 buf += spec->n_spadding; 21 } 22 } 23