Aw man, I thought C handled chars! It's just one byte! Okay, thanks again for your help.
As a general rule, do segmentation faults happen because memory isn't allocated? I'd guess with beginner C it wouldn't be anything fancier.

segmentation faults occur when you are trying to access memory that you are not suppose to.
e.g.
int *x; /* declares a pointer to int, the variable x is holding a random value which will be used to represent an address */
If you don't make that x to point to something meaningful, who knows what that random value is going to try to represent, and access as an address. Accessing that random address to write into, can create a segmentation fault.
Reputation Points: 2224
Solved Threads: 218
Nearly a Posting Maven
Offline 2,304 posts
since Dec 2006