WC> When I enter a directory, it messes it all up and all my
WC> char strings get mixed together, like for example my
use array's of characters and not pointers. It sound like an
allocation error to me.
Remeber char* is just a pointer. You have to "new char[xxx]" to give
it memory or strdup() (but that uses memalloc()).
WC> Now, what I tried to do was to enter double \\, like must be
The directory name might require it to be ended with '\' - this is
nasty to test for.
if it ends in '\' dont add one
if it doesn't end in '\'
add one only if the string is not empty
'' could default to relative directory and adding '\' makes
it the root directory
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)
|