Rev 974 | Rev 1173 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 974 | Rev 1010 | ||
---|---|---|---|
Line 65... | Line 65... | ||
65 | */ |
65 | */ |
66 | int putstr(const char * str) |
66 | int putstr(const char * str) |
67 | { |
67 | { |
68 | size_t count; |
68 | size_t count; |
69 | 69 | ||
- | 70 | if (str == NULL) { |
|
- | 71 | return putnchars("(NULL)",6 ); |
|
- | 72 | } |
|
- | 73 | ||
70 | for (count = 0; str[count] != 0; count++); |
74 | for (count = 0; str[count] != 0; count++); |
71 | if (write(1, (void * ) str, count) == count) { |
75 | if (write(1, (void * ) str, count) == count) { |
72 | return 0; |
76 | return 0; |
73 | } |
77 | } |
74 | 78 |