#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; }