Newbie C++ programmer again...

Brian Cluff brian@snaptek.com
Thu, 17 Aug 2000 19:19:40 -0700


> I am trying to figure out the proper way to use the isalpha function, when
I
> enter a digit, it returns 0, and when I enter an alpha character, I get a
> segmentation fault..  Can anyone tell me what I am doing wrong??

The man page says that it wants an unsigned char as input to the function.
The fact that you are feeding it an int might have something to do with it.
Maybe a cast would be in order if you need them to be an int for some reason
or other.
I could be terribly wrong though.  It's been quite a while since I last did
anything in C and that wasn't much.

Brian Cluff