517 |
*/ |
*/ |
518 |
static char * |
static char * |
519 |
extract_lastname(image, is_php) |
extract_lastname(image, is_php) |
520 |
char *image; |
const char *image; |
521 |
int is_php; |
int is_php; |
522 |
{ |
{ |
523 |
static char buf[MAXBUFLEN]; |
static char buf[MAXBUFLEN]; |
524 |
char *p; |
const char *p; |
525 |
char *q; |
char *q; |
526 |
int sep; |
int sep; |
527 |
|
|
588 |
*q++ = *p++; |
*q++ = *p++; |
589 |
*q = '\0'; |
*q = '\0'; |
590 |
if (*p == sep) { |
if (*p == sep) { |
591 |
p = locatestring(buf, "/", MATCH_LAST); |
q = locatestring(buf, "/", MATCH_LAST); |
592 |
if (p) |
if (q) |
593 |
p++; |
q++; |
594 |
else |
else |
595 |
p = buf; |
q = buf; |
596 |
return p; |
return q; |
597 |
} |
} |
598 |
return NULL; |
return NULL; |
599 |
} |
} |