Hi,
When compiled with musl-gcc (latest) on Slackware 14.2 this:
static void
dowrite(const char *fname, int trunc)
{
…
printf("%zu\n", bytecount);
}
does not work for me (it outputs a blank line). Given my rudimentary
knowledge of C and looking up on stackoverflow this does work.
static void
dowrite(const char *fname, int trunc)
{
…
printf("%lu\n", (unsigned long) bytecount);
}
Apparently '%zu' is not very portable (limited to C99).
Regards,
spaceman
Received on Sat Nov 28 2020 - 12:44:29 CET
This archive was generated by hypermail 2.3.0
: Sat Nov 28 2020 - 13:24:07 CET