[prev in list] [next in list] [prev in thread] [next in thread]
List: hpux-admin
Subject: [HPADM] Return Status of exit system call
From: ankaj%linker () Sun ! COM
Date: 1995-09-29 5:10:24
[Download RAW message or body]
Problem descriptions :
--------------------
Consider the following C source file
/********C file ************/
main()
{
exit(4000);
}
/************ End of C file ****/
Compile the above source code and execute the executable (say a.out).
Follow the steps in K shell
$ a.out
$ echo $?
160
It is required to interpret the return status.
The return status is 160 and not 4000.
160 is the remainder of 4000/256.
I want the return status to be 4000.
How can I achieve this ?
Please, reply as soon as possible.
Thanks,
Ankaj K Gupta
NIIT Ltd. (India).
email-address : ankaj@linker.sun.com
--
---> Please post QUESTIONS and SUMMARIES only!! <---
To subscribe/unsubscribe to this list, contact majordomo@cv.ruu.nl
Name: hpux-admin@cv.ruu.nl Owner: owner-hpux-admin@cv.ruu.nl
Archive: (FTP & browse): ftp.cv.ruu.nl/pub/digests/hpux-admin
(Web, browse, search): http://hpux.ced.tudelft.nl/HPUX_ADMIN_ARCHIVE
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic