[net.lang.c] Character-type macro question

sra@oddjob.UChicago.UUCP (Scott Anderson) (02/19/85)

<<<<<<<<

Can anybody tell me what sort of characters the ctype macro 'isxdigit' selects?
This appears to be undocumented in BSD4.2.

Alternatively, where can I find the definition of the table '_ctype_[]'?

boris@sftri.UUCP (B.Altman) (02/20/85)

> <<<<<<<<
> 
> Can anybody tell me what sort of characters the ctype macro 'isxdigit' selects?
> This appears to be undocumented in BSD4.2.
> 
> Alternatively, where can I find the definition of the table '_ctype_[]'?

There should be a file in libc source called ctype.c.
It has the definition of the table.
The standard place on SVR2 is /usr/src/lib/libc/port/gen/ctype.c.
Hope it helps.
			Boris Altman
			AT&T Bell Labs Summit NJ
			{ucbvax,ihnp4,allegra}!attunix!boris

robert@gitpyr.UUCP (Robert Viduya) (02/20/85)

><
Posted from  sra@oddjob.UChicago.UUCP (Scott Anderson)
> Can anybody tell me what sort of characters the ctype macro 'isxdigit' selects?

isxdigit determines whether a character is a hexadecimal digit or not.
-- 
Robert Viduya
Georgia Institute of Technology

...!{akgua,allegra,amd,hplabs,ihnp4,masscomp,ut-ngp}!gatech!gitpyr!robert
...!{rlgvax,sb1,uf-cgrl,unmvax,ut-sally}!gatech!gitpyr!robert

gwyn@brl-tgr.ARPA (Doug Gwyn <gwyn>) (02/21/85)

> Can anybody tell me what sort of characters the ctype macro 'isxdigit' selects?

ixdigit() is supposed to return true iff its argument is 0..9 a..f A..F.

geoff@ISM780.UUCP (02/23/85)

> Can anybody tell me what sort of characters the ctype macro 'isxdigit'
> selects?  This appears to be undocumented in BSD4.2.
	The hint is in the _x_.  I presumed (and my manual agreed), that
        it returns true for Hex digits, i.e. 0-9, a-f & A-F, and false
        for any othe argument.  It IS documented in our IS/3 manual, and
        in the PC/IX manual as well.

		 Geoffrey Kimbrough -- INTERACTIVE Systems Corp.
				ima!ism780!geoff