Changeset 413:7e49a3206e31 in roaraudio for libroarpulse


Ignore:
Timestamp:
08/10/08 11:32:03 (11 years ago)
Author:
phi
Branch:
default
Message:

added code for pa_path_get_filename()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/util.c

    r412 r413  
    1212 * component). */ 
    1313const char *pa_path_get_filename(const char *p) { 
    14  return NULL; 
     14 char * r; 
     15 
     16 if ( (r = strrchr(p, '/')) ) { 
     17  return (const char *) r+1; 
     18 } else { 
     19  return p; 
     20 } 
     21 
    1522} 
    1623 
Note: See TracChangeset for help on using the changeset viewer.