Subversion Repositories planix.SVN

Rev

Rev 50 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

#include <stdlib.h>
#include <string.h>


void
setprogname(const char *progname)
{
        const char *p;

        p = strrchr(progname, '/');
        if (p != NULL)
                __progname = p + 1;
        else
                __progname = progname;
}