Joseph Martin wrote:
> 
> Hello,
>         I used DJGPP for DOS a while back which is a port of GCC to DOS.
> Since it was a port I assumed all functions would be common between GCC
> and DJGPP. However, I used a function in DOS called fnsplit, defined in
> dir.h, that would take a string and parse it into drive, path, and
> filename. I looked, but can't find it under GCC. Does anyone know of an
> equivalent function or algorithm I can use?

On my system (RH5) there is dirname() and basename() declared in
libgen.h. The functions is defined in libc (glibc-2.0.7-7). No manpages
or info documentation. 

I think I have seen the same functions on other UN*Xes as well.

---
Henrik Nordström

Reply via email to