Menu

#1 0.10.0: basename() usage

open
nobody
None
5
2008-02-18
2008-02-18
Jens Engel
No

VERSION: 0.10.0

I tried to compile rapidotest on Cygwin. Everything worked fine except the usage of the "basename()" function, provided as GNU extension in "string.h". To make "basename()" more platform independent, you have the following possibilities:

1. Add a static "basename()" method to your File class (where it is missing).
2. Use POSIX header <libgen.h> that provides "basename()" , "dirname()" for UNIX platforms (and is support even in Cygwin).

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.