CMake/Utilities/cmlibarchive/build/cmake/CheckHeaderSTDC.c
Bill Hoffman fb51d98562 Switch to using libarchive from libtar for cpack and cmake -E tar
This allows for a built in bzip and zip capability, so external tools
will not be needed for these packagers.  The cmake -E tar xf should be
able to handle all compression types now as well.
2009-10-30 13:10:56 -04:00

21 lines
388 B
C

#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
int
main()
{
int i;
for (i = 0; i < 256; i++) {
if (XOR(islower(i), ISLOWER(i)) || toupper(i) != TOUPPER(i))
return 2;
}
return 0;
}