blob: 298608a057879fcebd7178f0d9e6aa488b916e27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "unalf.h"
char *self;
void set_self(char *argv0) {
char *p;
self = argv0;
p = strrchr(self, '/');
if(!p) p = strrchr(self, '\\'); // windows exe needs this
if(p) self = p + 1;
}
|