isalpha in ctype.h

Niklas Sjovall etxnisj at eos8c21.ericsson.se
Wed Mar 20 21:25:43 AEST 1991


Hi,

I want to use a macro defined in ctype.h on a Sun4 (4.03), but i don't
fully understand it.

The macro is:
#define	_U	01
#define	_L	02
extern	char	_ctype_[];
#define	isalpha(c)	((_ctype_+1)[c]&(_U|_L))

It's the part (_ctype_+1)[c] i don't understand. Could there be any
segmentation errors using this?

Thanks
 



More information about the Comp.lang.c mailing list