Hi Wade:;
Wade Carpenter,
In a message on 22 July, wrote :
WC> I'm pretty much stumped right now...
WC> I'm using Tc++ v.3 in dos, and I'm trying to read
WC> a directory name, like "C:\WINDOWS\SYSTEM" for example,
WC> using gets(dirw).
Where dirw is 'char *dirw', I guess ?
WC> When I enter a directory, it messes it all up and all my
WC> char strings get mixed together
If you are using 'char *dirw' try 'char dirw[50]' or if you must
user 'char *' then malloc it properly before passing it to gets(dirw)
WC> Well, at any rate i am completely BAFFLED!! HELP!!
I hope the above suggestions work for you. If they don't then please
pass on some more lines of your source and someone might be able to
help you (including me )
Bye for now
Rajesh
...
* ATP/Linux 1.42 * Dollars cannot buy yesterday.
--- Maximus/2 3.01
---------------
* Origin: Kalptaru Net India. http://www.kalptaru.com . (6:606/31)
|