The character '7' is not represented as 7 in ASCII.
EDIT: Too late.
Type: Posts; User: Dstrukt
The character '7' is not represented as 7 in ASCII.
EDIT: Too late.
Where is s pointing to? You just declare it as a char pointer, but never actually point it anywhere. Then you proceed to read in data to it. Strange stuff is bound to happen if not a segfault.
You probably won't be doing anything for a long time that will warrant a big IDE with lots of advanced features. Just use one of the gazillion text editors available and stick to the terminal for all...
lol
Check out this tutorial: http://beej.us/guide/bgnet/