Re:String tokenization in C
by jstimpfle on Sunday December 16, 2018 @07:42AM
(#18692847)
I explicitly wrote "or whatever test" as a comment to the code snippet, and obviously the test was not the point of my comment.
Anyway I think most programming languages nowadays have their source encoding specified as UTF-8 or at least something ASCII-like, so ('A' <= c && c <= 'Z') is in fact what I would likely write, and using isalpha() would technically be a bug just as well.
Anyway I think most programming languages nowadays have their source encoding specified as UTF-8 or at least something ASCII-like, so ('A' <= c && c <= 'Z') is in fact what I would likely write, and using isalpha() would technically be a bug just as well.