-=> 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)
|