I've been trying to get a C program to work, but I keep getting errors when I run it, though it builds fine. If you can, please take a look at it, build it, and report any errors or fixes if you can. I've tried two different compilers(DJGPP and Visual C++ Intro. Ed. from the Sams Teach Yourself C in 21 Days book, and I know the stubify.exe error), and while one part only create an error in one (even after a couple reinstalls), another creates an error in both.

Error #1 (DJGPP only):
[code]
Choose one of the following:
1 - Get character from number
2 - Get number from character
3 - Quit
Your choice: 1

Number of character: 1

Your number is: 1
Your character is: (some character)
sfExiting due to signal SIGSEGV
General Protection Fault at eip=00001771
eax=00000001 ebx=00008.....


Error #2 (Both):
when I choose option 2, it runs through the whole function without getting input.


TIA (antipoints for all who helps solve the prob)