1 /* 2 * placed in the public domain by Uwe Ohse, uwe@ohse.de. 3 */ 4 #include "bailout.h" 5 6 void bailout_progname(const char * s)7bailout_progname(const char *s) 8 { 9 unsigned int x; 10 unsigned int l=0; 11 int flag=0; 12 13 for (x=0;s[x];x++) 14 if (s[x]=='/') { 15 l=x; 16 flag=1; 17 } 18 if (!flag || !s[l+1]) 19 flag_bailout_log_name=s; 20 else 21 flag_bailout_log_name=s+l+1; 22 } 23