Hi:
I'm not a csh person, but I think what you want is to set the exit code in the "C" program, and not return:
ret.exe:
int main()
{
exit(7);
}
You then want to look at the exit code, $?, in the shell:
ret.exe
echo $? # Using SCO Open Server V
Regards,
Ed