blob: ab2de3e136be6a7661325d66ad295a19d70a5267 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <string.h>
#include "errors.h"
const char *__mlib_errors_progname;
void
setprogname(const char *s)
{
const char *p = strrchr(s, '/');
__mlib_errors_progname = p ? p + 1 : s;
}
|