TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: RAJESH DHAWAN
from: WADE CARPENTER
date: 1997-07-24 16:26:00
subject: Re: How would I...

 -=> Quoting Rajesh Dhawan to Wade Carpenter <=-
 RD> Where dirw is 'char *dirw', I guess ?
yep... right on 
 RD> If you are using 'char *dirw' try 'char dirw[50]' or if you must
 RD> user 'char *' then malloc it properly before passing it to gets(dirw)
 RD> I hope the above suggestions work for you. If they don't then please
 RD> pass on some more lines of your source and someone might be able to
 RD> help you (including me )
Yep.. It worked like a charm!!! Thanks so much for the help, because I never
would have thought of that!!  So, would it generally be better then, to 
use 'char any[50]' instead of using 'char *any'?  Before now, I never knew
any reason to specify the length, other than writing to files...  Well, 
hanks
again.  cya
... Initialize: Carving your initials on a floppy disk.  
---
---------------
* Origin: Alley Drive Software, Maple Ridge BC - 604-463-1776 (1:153/265)

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™.