case.h

pennmush/hdrs/case.h · 394 B

From the archive pennmush-1.8.0p11.tar.gz

Download the archive   « Back to the archive contents

#ifndef CASE_H
#define CASE_H
#include <ctype.h>
#include "config.h"

#ifdef HAS_SAFE_TOUPPER
#define DOWNCASE(x)     tolower((unsigned char)x)
#define UPCASE(x)       toupper((unsigned char)x)
#else
#define DOWNCASE(x) (isupper((unsigned char)x) ? tolower((unsigned char)x) : (x))
#define UPCASE(x)   (islower((unsigned char)x) ? toupper((unsigned char)x) : (x))
#endif
#endif				/* CASE_H */

Site Stats

Snippets: 1791
Codebases: 571