Rev 675 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 675 | Rev 1069 | ||
---|---|---|---|
Line 48... | Line 48... | ||
48 | */ |
48 | */ |
49 | static void print_str(const char *str) |
49 | static void print_str(const char *str) |
50 | { |
50 | { |
51 | int i = 0; |
51 | int i = 0; |
52 | char c; |
52 | char c; |
- | 53 | char errstr[] = "(NULL)"; |
|
- | 54 | ||
- | 55 | if (str == NULL) { |
|
- | 56 | while ((c = errstr[i++])) |
|
- | 57 | putchar(c); |
|
- | 58 | return; |
|
- | 59 | } |
|
53 | 60 | ||
54 | while ((c = str[i++])) |
61 | while ((c = str[i++])) |
55 | putchar(c); |
62 | putchar(c); |
56 | } |
63 | } |
57 | 64 |