Hi,
Does anyone know how I can print out the return value from the main function on the shell command line?
Thanks!
Hi,
Does anyone know how I can print out the return value from the main function on the shell command line?
Thanks!
Ivan
Depends on you shell
For csh, try
echo $status
For bash/sh/ksh, try
echo $?