/* basename_r.h PUBILC DOMAIN 2008 tom.viza@gmail.com */ /* I, Tom Vajzovic, am the author of this software and its documentation */ /* and permanently abandon all copyright and other intellectual property */ /* rights in them, including the right to be identified as the author. */ /* I am fairly certain that this software does what the documentation */ /* says it does, but I do not guarantee that it does, or that it does */ /* what you think it should. I do not guarantee that it will not have */ /* undesirable side effects. */ /* You are free to use, modify and distribute this software as you */ /* please, but you do so at your own risk. If you remove or hide this */ /* warning then you may be responsible for any problems that are */ /* encountered by those who obtain the software through you. */ #ifndef BASENAME_R_H_INCLUDED #define BASENAME_R_H_INCLUDED #include size_t dirname_len( const char *name ); const char *basename_wlen( const char *name, size_t *len ); const char *dirname_r( char *name ); const char *basename_r( char *name ); char *dirname_dup( const char *name ); char *basename_dup( const char *name ); #endif