diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-10-04 23:38:21 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-10-04 23:44:57 +0200 |
commit | 019bb0178ec6e97bf1bc780c027407b14fdbd407 (patch) | |
tree | 278f677617707f89cd1699d7fbd42ba32757c206 | |
parent | baea971bfbe98c8503d464d2934fb32b50eab6b7 (diff) |
sfeed: fix ctype functions again
-rw-r--r-- | sfeed.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -378,10 +378,10 @@ string_print_encoded(String *s) return; /* skip leading whitespace */ - for (p = s->data; *p && ISSPACE((int)*p); p++) + for (p = s->data; *p && isspace((int)*p); p++) ; /* seek offset of trailing whitespace */ - for (e = p + strlen(p); e > p && ISSPACE((int)*(e - 1)); e--) + for (e = p + strlen(p); e > p && isspace((int)*(e - 1)); e--) ; for (; *p && p != e; p++) { @@ -391,7 +391,7 @@ string_print_encoded(String *s) case '\t': fputs("\\t", stdout); break; default: /* ignore control chars */ - if (!ISCONTROL((int)*p)) + if (!iscntrl((int)*p)) putchar(*p); break; } |