Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

ctype.h 449B

12345678910111213141516171819202122232425262728
  1. #ifndef _CTYPE_H
  2. #define _CTYPE_H
  3. /** @file
  4. *
  5. * Character types
  6. */
  7. #define isdigit(c) ((c & 0x04) != 0)
  8. #define islower(c) ((c & 0x02) != 0)
  9. //#define isspace(c) ((c & 0x20) != 0)
  10. #define isupper(c) ((c & 0x01) != 0)
  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. #endif /* _CTYPE_H */