As a newbie to this language I throw myself on the mercy of the people who know what they are doing.
I am trying to learn the basics of the C language and I have hit a bit of an annoyance.
I wish to develop a small program that acts like a menu, but I seem to have problems catching the new line character. I am running on a Win 98 platform with the gcc complier. We used it extensively working on building mobile databases for the Palm PDA, Sorry started rambling. Here is a copy of the code I am playing with. I would like to have a menu appear and when the user makes a selection it goes to another function and runs, then return and display the menu again. It almost works but not quite. I hope this does not violate any board rules, I did not see any rules on postin code. Please let me know if I am in error. Thanks in advance for any advice.
printf("Select an option\n\n");
printf ("1. Option.\n");
value = atoi(&option);
switch ( value )
printf ("\n\nYou selected Option 1\n\n");