mirror of
https://github.com/nArnoSNES/tcc-65816.git
synced 2024-06-02 19:42:59 +00:00
15 lines
257 B
C
15 lines
257 B
C
char buf[40];
|
|
|
|
extern int sprintf (char*, const char*, ...);
|
|
extern void abort (void);
|
|
|
|
int main()
|
|
{
|
|
int i = 0;
|
|
int l = sprintf (buf, "%s", i++ ? "string" : "other string");
|
|
if (l != sizeof ("other string") - 1 || i != 1)
|
|
abort ();
|
|
return 0;
|
|
}
|
|
|