X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fproctitle.c;h=e364fc4b015bcdd33f7c6c1449fb4eca7bed5b85;hb=42b76ab379f0419d9521c9028ca41ae82b6ce890;hp=111ab4b985400c79ae4fb62d07d5643c8431af63;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/proctitle.c b/lib/proctitle.c index 111ab4b9..e364fc4b 100644 --- a/lib/proctitle.c +++ b/lib/proctitle.c @@ -1,7 +1,7 @@ /* - * Sherlock Library -- Setting of Process Title + * UCW Library -- Setting of Process Title * - * (c) 2001 Martin Mares + * (c) 2001--2006 Martin Mares * * This software may be freely distributed and used according to the terms * of the GNU Lesser General Public License. @@ -74,3 +74,9 @@ setproctitle(char *msg, ...) } va_end(args); } + +char * +getproctitle(void) +{ + return (spt_start < spt_end) ? spt_start : NULL; +}