I would like to write a small program that enables me to read a value that can be between 0 and 1FFF then use it in a shell-script.
Unfortunately, I just discovered that the return code of an executable Linux can not exceed 255. I am especially surprised that the return type of main is an int.
gives me:Code:int main() { return 257; }
Why this limitation? And-a-there a way to override?Code:#echo $? #1
Bookmarks