TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: WADE CARPENTER
from: RAJESH DHAWAN
date: 1997-07-27 12:09:00
subject: Me again.. HEEEELPPPP!!

Hi again Wade::
  Wade Carpenter,
  In a message on 25 July, wrote :
WC> Ok.. Here's the problem.  This code is meant to write 138 bytes of 
nforma
WC> to a file, "ZS.CFG" but it writes whatever is entered plus garbage, or 
WC> 
WC> DOESN'T WORK:
WC> #include 
WC> 
WC> void main(void)
WC> {
WC> FILE *fp;
WC> char msg[88];
WC> char fspec[50];
 /* Insert a couple of lines here and you should be through ..*/
memset(msg,0,88); /* Initializes msg and fspec
memset(fspec,0,50);
WC> fp = fopen("ZS.CFG","wt");
WC> fwrite(gets(msg),88,1,fp);
See you
Rajesh
 
...
 * ATP/Linux 1.50 * A thief believes that everybody steals.
--- Maximus/2 3.01
---------------
* Origin: Kalptaru Net India. http://www.kalptaru.com . (6:606/31)

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