This is my first post here! I have two questions:
1. I'm learning C by using 'Sams Teach yourself C for Linux Programming in 21 days'. I have finished the first week and have difficulties with the end-of-week programme. My problem is with a function called 'display()'. It is a void function so there is no return statement. But yet, I get the following error message from GCC:
'in function "disply()"'
'use "return" to return in void function'
The message is very similiar to the above one but not exactly the same. Can anyone help?
2. If I want to display the following message and then immediately quit the programme when I'm not in the main function
what do I do?
' if(cont == NO)
printf("Programme aborted by user!");
/* what's the command for exiting? It goes here */