The following code is giving me a Segmentation fault
void parseInput(char usrIn[])
{
char retCmd[MAX_INPUT];
retCmd[0] = usrIn[0];
printf('Debug: %c\n', retCmd[0]);
}
This is my first big project in C, but I think it's the printf giving me fault .. however I'm not sure...
MAX_INPUT, what are you passing to the function when calling it? It's hard to help you if your question is so vague.