Even better if you make it:
template<class T>
constexpr bool is_space(const T & x) {
return x == ' ' || x == '\n';
}
Debuggable, type safe and same performance as straight C code.