Skip to content

Commit

Permalink
fixed printf specified in io
Browse files Browse the repository at this point in the history
  • Loading branch information
jtramm committed May 6, 2014
1 parent ddd4537 commit ab3e9fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ void fancy_int( long a )
printf("%ld\n",a);

else if( a >= 1000 && a < 1000000 )
printf("%d,%03ld\n", a / 1000, a % 1000);
printf("%ld,%03ld\n", a / 1000, a % 1000);

else if( a >= 1000000 && a < 1000000000 )
printf("%d,%03ld,%03ld\n", a / 1000000, (a % 1000000) / 1000, a % 1000 );
printf("%ld,%03ld,%03ld\n",a / 1000000,(a % 1000000) / 1000,a % 1000 );

else if( a >= 1000000000 )
printf("%ld,%03ld,%03ld,%03ld\n",
Expand Down

0 comments on commit ab3e9fa

Please sign in to comment.