blob: 8b985f03530cead8aa162938036d93ba30310f3f [file] [log] [blame]
char buf[10];
extern void abort (void);
extern int sprintf (char*, const char*, ...);
int main()
{
int l = sprintf (buf, "foo\0bar");
if (l != 3)
abort ();
return 0;
}