void setproctitle_init(int argc, char **argv);
void setproctitle(char *msg, ...) FORMAT_CHECK(printf,1,2);
+char *getproctitle(void);
/* randomkey.c */
/*
* UCW Library -- Setting of Process Title
*
- * (c) 2001 Martin Mares <mj@ucw.cz>
+ * (c) 2001--2006 Martin Mares <mj@ucw.cz>
*
* This software may be freely distributed and used according to the terms
* of the GNU Lesser General Public License.
}
va_end(args);
}
+
+char *
+getproctitle(void)
+{
+ return (spt_start < spt_end) ? spt_start : NULL;
+}