1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <ctype.h> int isspace(int c) { switch (c) { case ' ': case '\t': case '\v': case '\f': case '\r': case '\n': return 1; default: return 0; } }