From mboxrd@z Thu Jan 1 00:00:00 1970 From: itz@very.loosely.org (Ian Zimmerman) Date: Thu, 14 Sep 2017 13:50:58 -0700 Subject: [TUHS] Happy birthday, Dennis Ritchie! [ really sun vs dec/apollo --> X and NeWS ] In-Reply-To: References: Message-ID: <20170914205058.r4zrexpig5mbvhff@matica.foolinux.mooo.com> On 2017-09-14 15:54, Steve Nickolas wrote: > You got perror(), use it (not you)... >_> > > All my code that outputs error messages for stuff in the C library > uses perror(), so a typical error might be "foo: cannot open file bar: > No such file or directory", with the last part coming from the C > runtime itself. This only works if you call libc directly, or if the code you call (including your own) reuses libc errno codes. If you deal with libfoo, libfoo has its own error codes, and has no perror-like function, you must write your own :( -- Please don't Cc: me privately on mailing lists and Usenet, if you also post the followup to the list or newsgroup. Do obvious transformation on domain to reply privately _only_ on Usenet.