Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

ctype.h 501B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _CTYPE_H
  2. #define _CTYPE_H
  3. /** @file
  4. *
  5. * Character types
  6. */
  7. FILE_LICENCE ( GPL2_OR_LATER );
  8. #define isdigit(c) ((c) >= '0' && (c) <= '9')
  9. #define islower(c) ((c) >= 'a' && (c) <= 'z')
  10. #define isupper(c) ((c) >= 'A' && (c) <= 'Z')
  11. static inline unsigned char tolower(unsigned char c)
  12. {
  13. if (isupper(c))
  14. c -= 'A'-'a';
  15. return c;
  16. }
  17. static inline unsigned char toupper(unsigned char c)
  18. {
  19. if (islower(c))
  20. c -= 'a'-'A';
  21. return c;
  22. }
  23. extern int isspace ( int c );
  24. #endif /* _CTYPE_H */