On Wed, 4 Jun 2003, MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote: > If I understand you correctly, libraries should return the errno (because > errors may mean strings also), and not try writing anything to stderr. The > application should do the job of writing to stderr. > > Is that just your opinion OR is it accepted programming practice OR is it > documented somewhere ?..
Well, if it's just his opinion, I second it. Libraries should return an error to the caller, *not* print messages to some arbitrary file descriptor (stderr in this case) which the caller may or may not still have open. I don't know if we have that documented as a standard for our library, but we've followed it as an accepted standard to date anyway. --Cliff
