Re: Re: Solved (was: Exit-Code von Shellbefehl in C auswerten)

Bernhard Walle <[email protected]>
Newsgroups gmane.linux.suse.programming
Organization SUSE Linux Producs GmbH
Message-ID <[email protected]>
* Jens Nixdorf [Donnerstag 13 März 2008 18:16]:
> Am Donnerstag, 13. März 2008 schrieb Bernhard Walle:
>>
>> Du solltest aber trotzdem WEXITSTATUS() auf den Rückgabewert anwenden.
> 
> Mache ich. Hat ein wenig gedauert, bis ich verstanden habe, dass in 
> system nur mehr oder weniger "Erfolg" oder "Misserfolg" drinsteht und in 
> WEXITSTATUS der "wirkliche" Rückgabewert, aber irgendwann klappts sogar 
> bei mir ;)

Es ist IMO auch blöd zwar mit system() einen portable Funktion zu haben, die
dann aber unportable Rückgabewerte liefert. Aber so ist das Leben.


        Bernhard


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.