Skip to content

Commit

Permalink
New external call: print_int()
Browse files Browse the repository at this point in the history
  • Loading branch information
perezzini committed Dec 4, 2017
1 parent f7f63eb commit 34ea884
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ void print(string *s)
for (i = 0; i < s->length; i++, p++)
putchar(*p);
}
void print_int(long i)
{
printf("%ld", i);
}
void flush()
{
fflush(stdout);
Expand Down

0 comments on commit 34ea884

Please sign in to comment.