diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-11-08 15:16:13 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-11-08 15:16:13 -0800 |
commit | e70adbcd2d0444624420afce7b04436118ee91f6 (patch) | |
tree | 2622820935853d42c5581e56ea6a3069454dfa58 /src/misc/extra/extraUtilFile.c | |
parent | 5021909cb1c42e80a27df117f084608dcbf3e2c3 (diff) | |
download | abc-e70adbcd2d0444624420afce7b04436118ee91f6.tar.gz abc-e70adbcd2d0444624420afce7b04436118ee91f6.tar.bz2 abc-e70adbcd2d0444624420afce7b04436118ee91f6.zip |
Improvements to the standard cell flow.
Diffstat (limited to 'src/misc/extra/extraUtilFile.c')
-rw-r--r-- | src/misc/extra/extraUtilFile.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/misc/extra/extraUtilFile.c b/src/misc/extra/extraUtilFile.c index d514f862..18a7f42c 100644 --- a/src/misc/extra/extraUtilFile.c +++ b/src/misc/extra/extraUtilFile.c @@ -196,6 +196,26 @@ char * Extra_FileNameGenericAppend( char * pBase, char * pSuffix ) /**Function************************************************************* + Synopsis [] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +char * Extra_FileNameWithoutPath( char * FileName ) +{ + char * pRes; + for ( pRes = FileName + strlen(FileName) - 1; pRes >= FileName; pRes-- ) + if ( *pRes == '\\' || *pRes == '/' ) + return pRes + 1; + return FileName; +} + +/**Function************************************************************* + Synopsis [Returns the file size.] Description [The file should be closed.] |