diff options
Diffstat (limited to 'tests/test_itoa.c')
-rw-r--r-- | tests/test_itoa.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_itoa.c b/tests/test_itoa.c new file mode 100644 index 0000000..76df145 --- /dev/null +++ b/tests/test_itoa.c @@ -0,0 +1,13 @@ +#include "stdlib.h" +#include "string.h" + +int main( void ) +{ + char *res; + char buf[11]; + + res = itoa( 568876, buf, 10 ); + if( strcmp( res, buf ) ) return 1; + + return 0; +} |