PageRenderTime 75ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/sdcc-310-pre1/device/lib/pic16/libc/ctype/islower.c

#
C | 38 lines | 8 code | 3 blank | 27 comment | 2 complexity | 691b47ce72e53ef9935d577b66ee66f7 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.0, LGPL-2.1, GPL-3.0
  1. /*-------------------------------------------------------------------------
  2. islower.c - part of ctype.h
  3. Copyright (C) 1999, Sandeep Dutta <sandeep.dutta at usa.net>
  4. This library is free software; you can redistribute it and/or modify it
  5. under the terms of the GNU General Public License as published by the
  6. Free Software Foundation; either version 2.1, or (at your option) any
  7. later version.
  8. This library is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this library; see the file COPYING. If not, write to the
  14. Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
  15. MA 02110-1301, USA.
  16. As a special exception, if you link this library with other files,
  17. some of which are compiled with SDCC, to produce an executable,
  18. this library does not by itself cause the resulting executable to
  19. be covered by the GNU General Public License. This exception does
  20. not however invalidate any other reasons why the executable file
  21. might be covered by the GNU General Public License.
  22. -------------------------------------------------------------------------*/
  23. #include <ctype.h>
  24. #define UC(c) ((unsigned char)c)
  25. char islower (unsigned char c)
  26. {
  27. if ( c >= UC('a') && c <= UC('z') )
  28. return 1;
  29. return 0;
  30. }