Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1.  
  2. /*
  3. FUNCTION
  4.         <<iswupper>>---uppercase wide character test
  5.  
  6. INDEX
  7.         iswupper
  8.  
  9. ANSI_SYNOPSIS
  10.         #include <wctype.h>
  11.         int iswupper(wint_t <[c]>);
  12.  
  13. TRAD_SYNOPSIS
  14.         #include <wctype.h>
  15.         int iswupper(<[c]>)
  16.         wint_t <[c]>;
  17.  
  18. DESCRIPTION
  19. <<iswupper>> is a function which classifies wide-character values that
  20. have uppercase translations.
  21.  
  22. RETURNS
  23. <<iswupper>> returns non-zero if <[c]> is a uppercase wide character.
  24.  
  25. PORTABILITY
  26. <<iswupper>> is C99.
  27.  
  28. No supporting OS subroutines are required.
  29. */
  30. #include <_ansi.h>
  31. #include <wctype.h>
  32.  
  33. int
  34. _DEFUN(iswupper,(c),wint_t c)
  35. {
  36.   return (towlower (c) != c);
  37. }
  38.  
  39.