RE: [Dev-C++] ANSI C: How to split path and filename
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Schedler, K. <Kur...@hi...> - 2001-06-07 14:30:50
|
Don't forget that Unix uses forward slashes and DOS (somewhat =
annoyingly,
IMO) uses backslashes. So if you're testing for a particular =
character, it
won't work indentically on different platforms.
-----Original Message-----
From: Albert Vilella Bertran [mailto:vil...@ya...]
Sent: Thursday, June 07, 2001 1:51 AM
To: DevC MAILING List
Subject: [Dev-C++] ANSI C: How to split path and filename
Hello,
how do I split my path and my filename?
Example:
c:\things\alfa\myfile.txt
like: char *thepath ----> c:\things\alfa
char *thefile ----> myfile.txt
in ANSI C (or C), meaning the same way with DOS or UNIX
There is anywhere to find this kind of things? (I couldn't find in the =
help
neither in Bob Stout's snippets)
Thanks.
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicaci=F3n instant=E1nea gratis con tu gente -
http://messenger.yahoo.es
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
"The sender believes that this E-mail and any attachments were free of =
any
virus, worm, Trojan horse, and/or malicious code when sent. This =
message
and its attachments could have been infected during transmission. By
reading the message and opening any attachments, the recipient accepts =
full
responsibility for taking protective and remedial action about viruses =
and
other defects. The sender's employer is not liable for any loss or =
damage
arising in any way from this message or its attachments."
|