[cs631apue] return codes

Jan Schaumann jschauma at stevens.edu
Wed Oct 13 14:03:59 EDT 2021


Hello,

In last night's class I was stumped as to why a
program had returned 10 when I had expected it to
return 13.  After digging in, it turned out to be due
to compiler optimization, but I thought it made for an
interesting story so I wrote it up here:

https://www.netmeister.org/blog/return-printf.html

-Jan


More information about the cs631apue mailing list