| Subject: | Re: scan_ffs from OpenBSD ported and improved. |
|---|---|
| From: | Roland Illig |
| Date: | Tue, 07 Jun 2005 09:49:53 +0200 |
David Laight wrote: On Tue, Jun 07, 2005 at 06:36:24AM +0200, Roland Illig wrote:Simon Burge wrote:I've always thought that "(void)printf(..." was overkill. In our source tree, a quick grep shows 71520 printf's without void and 2203 with void.I hope that in all the non-void cases ferror() is called after printing, but my guess is that it isn't.You need to check ferror() after fflush(), not fprintf(). Good point. I should reread the <stdio.h> documentation. :) Roland |
| Previous by Date: | guidelines for common code patterns?, Roland Illig |
|---|---|
| Next by Date: | Re: scan_ffs from OpenBSD ported and improved., Julio M. Merino Vidal |
| Previous by Thread: | Re: scan_ffs from OpenBSD ported and improved., David Laight |
| Next by Thread: | Re: scan_ffs from OpenBSD ported and improved., der Mouse |
| Indexes: | [Date] [Thread] [Top] [All Lists] |