TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: WADE CARPENTER
from: CAMERON CLARK
date: 1997-07-23 17:07:00
subject: Re: How would I...

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.