X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Fctype.h;h=2c8071c5da3b39eb08f1ba72d2b8d3eacc98345e;hb=71712a8bb92d6a10218e3356c6d26554dc2633dd;hp=96f288c820e6a91e014e0e7c8f293c1229ec75ed;hpb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;p=pdclib diff --git a/includes/ctype.h b/includes/ctype.h index 96f288c..2c8071c 100644 --- a/includes/ctype.h +++ b/includes/ctype.h @@ -1,60 +1,23 @@ -/* ---------------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------------- - * Public Domain C Library - http://pdclib.sourceforge.net - * This code is Public Domain. Use, modify, and redistribute at will. - * ---------------------------------------------------------------------------- - * Character handling - * --------------------------------------------------------------------------*/ +/* $Id$ */ -#ifndef _CTYPE_H -#define _CTYPE_H _CTYPE_H +/* 7.4 Character handling -/* ---------------------------------------------------------------------------- - * FUNCTIONS - * --------------------------------------------------------------------------*/ + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ -/* returns nonzero if c is alphanumeric in the locale. */ -int isalnum( int c ); +#ifndef _PDCLIB_CTYPE_H +#define _PDCLIB_CTYPE_H _PDCLIB_CTYPE_H -/* returns nonzero if c is alphabetic character in the locale. */ -int isalpha( int c ); +/* ------------------------------------------------------------------------- */ +/* THIS IS A STUB - THIS IS A STUB - THIS IS A STUB - THIS IS A STUB */ +/* ------------------------------------------------------------------------- */ +/* This implements two functions that are required by / */ +/* for the C locale only. Will be replaced in v0.6 by something compliant. */ +/* ------------------------------------------------------------------------- */ -/* returns nonzero if c is a horizontal blank in the locale. */ -int isblank( int c ); - -/* returns nonzero if c is a control character in the locale. */ -int iscntrl( int c ); - -/* returns nonzero if c is a digit in the locale. */ -int isdigit( int c ); - -/* returns nonzero if c is alphanumeric or a punctuation in the locale. */ -int isgraph( int c ); - -/* returns nonzero if c is a lowercase alphabetic character in the locale. */ -int islower( int c ); - -/* returns nonzero if c is a printable character ( isgraph() or isblank() ) in - * the locale. */ -int isprint( int c ); - -/* returns nonzero if c is a punctuation in the locale. */ -int ispunct( int c ); - -/* returns nonzero if c is a whitespace in the locale. */ -int isspace( int c ); - -/* returns nonzero if c is an uppercase alphabetical character in the locale. */ -int isupper( int c ); - -/* returns nonzero if c is a hexedecimal digit in the locale. */ -int isxdigit( int c ); - -/* returns lowercase equivalent for c in locale. */ int tolower( int c ); +int isspace( int c ); -/* returns uppercase equivalent for c in locale. */ -int toupper( int c ); +#endif -#endif /* _CTYPE_H */