picoc/tests/37_sprintf.c
zik.saleeba 5e6ddfa7ff Fixed a bug which was causing sprintf() to crash.
Added a test for it.
Issue #66


git-svn-id: http://picoc.googlecode.com/svn/trunk@401 21eae674-98b7-11dd-bd71-f92a316d2d60
2009-11-14 11:11:38 +00:00

9 lines
131 B
C

char Buf[100];
int Count;
for (Count = 1; Count <= 20; Count++)
{
sprintf(Buf, "->%02d<-\n", Count);
printf("%s", Buf);
}