Skip to content

Commit

Permalink
fixed null instead of nill
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenni-Foued committed Oct 30, 2020
1 parent d0c538d commit a2273f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion print_s.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ int print_s(va_list arg)
int i = 0;

if (str == NULL)
str = "(nil)";
str = "(null)";

for (; str[i]; i++)
_putchar(str[i]);
Expand Down

0 comments on commit a2273f3

Please sign in to comment.