Path: utzoo!attcan!uunet!lll-winken!ames!haven!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.wizards Subject: Re: Unix problem or C problem? Message-ID: <15505@mimsy.UUCP> Date: 18 Jan 89 05:37:19 GMT References: <245@ibd.BRL.MIL> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 19 In article <245@ibd.BRL.MIL> heilpern@ibd.BRL.MIL (Mark A. Heilpern) writes: > while (fscanf(input,"%d",stars)!=EOF) { > fprintf(stderr,"OK to this point.\n"); > fprintf(output,"%4d |",lines++); > stars /= 50; > for (count = 0; count <= stars; count++) > fprintf(output,"*"); > fprintf(output,"\n"); > } Note especially the first complaint referring to fscanf. % lint t.c t.c: t.c(6): warning: fscanf argument is type (int) rather than pointer (arg 3) fprintf returns value which is always ignored -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris