1 /* copied from rsync */
8 static int foo(const char *format, ...)
15 len = vsnprintf(0, 0, format, ap);
17 if (len != 5) return(1);
19 if (snprintf(buf, 3, "hello") != 5 || strcmp(buf, "he") != 0) return(1);
23 int main(void) { return foo("hello"); }