[prev] [thread] [next] [lurker] [Date index for 2004/11/03]
pulled out of a program i'm trying to figure out why it's misbehaving: /* How to print/log error messages */ #define DANGER_WILL_ROBINSON(KateBush) \ { if (Debug) \ perror (KateBush); \ if (Log) { \ char *xyzzy = malloc(strlen(KateBush)+4); \ (void) strcpy(xyzzy, KateBush); (void) strcat(xyzzy, ": %m"); \ syslog (LOG_ERR, xyzzy); free(xyzzy); } \ finis (); } well. thank you for your helpful and illustrative names, guys.
Generated at 10:01 on 05 Nov 2004 by mariachi 0.52