diff options
| author | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2000-06-13 14:23:36 +0000 |
|---|---|---|
| committer | Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> | 2000-06-13 14:23:36 +0000 |
| commit | 9f26cfc78f5b64d3741638e5e1a96d4b15aa99be (patch) | |
| tree | baea89e1b95a4895ffbe1e6a3f10bf9ef35f772a /lib/libc | |
| parent | 0cc62926e6b937ae5ed1372b65561f40c0d72db1 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/locale/isctype.c | 65 |
1 files changed, 58 insertions, 7 deletions
diff --git a/lib/libc/locale/isctype.c b/lib/libc/locale/isctype.c index 4d51813dbe2c..70bcfd46d93c 100644 --- a/lib/libc/locale/isctype.c +++ b/lib/libc/locale/isctype.c @@ -37,6 +37,8 @@ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. + * + * $FreeBSD$ */ #if defined(LIBC_SCCS) && !defined(lint) @@ -45,6 +47,14 @@ static char sccsid[] = "@(#)isctype.c 8.3 (Berkeley) 2/24/94"; #include <ctype.h> +#undef digittoint +int +digittoint(c) + int c; +{ + return (__maskrune((c), 0xFF)); +} + #undef isalnum int isalnum(c) @@ -101,6 +111,22 @@ isgraph(c) return (__istype((c), _G)); } +#undef ishexnumber +int +ishexnumber(c) + int c; +{ + return (__istype((c), _X)); +} + +#undef isideogram +int +isideogram(c) + int c; +{ + return (__istype((c), _I)); +} + #undef islower int islower(c) @@ -109,6 +135,22 @@ islower(c) return (__istype((c), _L)); } +#undef isnumber +int +isnumber(c) + int c; +{ + return (__istype((c), _D)); +} + +#undef isphonogram +int +isphonogram(c) + int c; +{ + return (__istype((c), _Q)); +} + #undef isprint int isprint(c) @@ -125,6 +167,14 @@ ispunct(c) return (__istype((c), _P)); } +#undef isrune +int +isrune(c) + int c; +{ + return (__istype((c), 0xFFFFFF00L)); +} + #undef isspace int isspace(c) @@ -133,6 +183,14 @@ isspace(c) return (__istype((c), _S)); } +#undef isspecial +int +isspecial(c) + int c; +{ + return (__istype((c), _T)); +} + #undef isupper int isupper(c) @@ -173,10 +231,3 @@ toupper(c) return (__toupper(c)); } -#undef digittoint -int -digittoint(c) - int c; -{ - return (__maskrune((c), 0xFF)); -} |
