blob: bfc77b07a098bb282f64422f1c26475d786bda22 (
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
mlib_setprogname(const char *s)
{
const char *p = strrchr(s, '/');
__mlib_errors_progname = p ? p + 1 : s;
}
|