This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problems with exit codes on 64-bit Windows XP Pro x64


Samuel Thibault <samuel.thibault@ens-lyon.org> wrote:

>> Hi,
>> 
>> Kevin Layer, le Mon 06 Feb 2006 14:37:00 -0800, a écrit :
>> Content-Description: bug.c
>> > /* demonstrate a bug in capturing the exit code from shell */
>> > main (int argc, char *argv[])
>> > {
>> >     int docommand(char *), res;
>> >     
>> >     if (argc > 1) {
>> > 	res = docommand(argv[1]);
>> > 	printf("result = %d\n", res);
>> >     } else {
>> > 	 printf("no command!\n");
>> >     }
>> > }
>> 
>> There is no "return res;" here, is that on purpose ?

No, but it's not relevant to the problem.  (The main text of my message
wasn't sent until later, since something stripped it out.)

Kevin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]