Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. static inline char upcaseASCII(char c)
  2. {
  3. // If this is _not_ a lower case character simply return
  4. if (c < 'a' || c > 'z')
  5. return c;
  6. // Otherwise substract 32 to make the lower case character an upper case one
  7. else
  8. return c - 32;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement