exiting in c

how can i exit in a c program i have tried
system ("exit");

but this doesnt seem to work
just wondered if you could help.

exit(0);

thanks alot

return; may also suffice; (if its main(), then you needn't give 0 after return)