mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-02 19:42:59 +00:00
14 lines
181 B
C
14 lines
181 B
C
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;
|
|
}
|
|
|