File: sre_ctype.c

package info (click to toggle)
biosquid 1.9g%2Bcvs20050121-11
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,616 kB
  • sloc: ansic: 12,750; sh: 1,412; perl: 243; makefile: 230
file content (31 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*****************************************************************
 * @LICENSE@
 *****************************************************************/

/* sre_ctype.c
 * 
 * For portability. Some systems have functions tolower, toupper
 * as macros (for instance, MIPS M-2000 RISC/os!)
 * 
 * CVS $Id: sre_ctype.c,v 1.4 2003/04/14 16:00:16 eddy Exp $
 */

#include "squidconf.h"

#include <ctype.h>
#include "squid.h"

int
sre_tolower(int c)
{
  if (isupper(c)) return tolower(c);
  else return c;
}

int
sre_toupper(int c)
{
  if (islower(c)) return toupper(c);
  else return c;
}