Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!ulysses!andante!alice!andrew From: andrew@alice.UUCP (Andrew Hume) Newsgroups: comp.lang.c Subject: Re: still problems with ?: Summary: good technique Message-ID: <9504@alice.UUCP> Date: 19 Jun 89 04:47:39 GMT References: <10387@smoke.BRL.MIL> <568@lakart.UUCP> <10409@smoke.BRL.MIL> Organization: AT&T Bell Laboratories, Murray Hill NJ Lines: 11 i would second doug's comment. a technique i have found useful (but not usable all the time) is for routines to return a char *. on success this is 0, on error it is the actual error message. simple to use, e.g. if(e = poot(args)){ fprintf(stderr, "%s\n", e); exit(1); }