Hello,

#include <math.h>
int main(void)
{
char buf[10];
return snprintf(buf, 0, "string");
}

GCC simplifies it to
main:
mov eax, 6
ret

but 0 is correct I think.

Reply via email to