| Revision: | 2.4 |
| Committed: | Fri Nov 5 03:31:36 2004 UTC (21 years, 1 month ago) by greg |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | HEAD |
| Changes since 2.3: | +1 -1 lines |
| State: | FILE REMOVED |
| Log Message: | Removed unused programs and files from distribution (sources to CVS attic) |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | greg | 1.1 | #ifndef lint |
| 2 | greg | 2.4 | static const char RCSid[] = "$Id: fwrite.c,v 2.3 2003/02/25 02:47:21 greg Exp $"; |
| 3 | greg | 1.1 | #endif |
| 4 | greg | 2.3 | #include "copyright.h" |
| 5 | greg | 1.2 | |
| 6 | #include <stdio.h> | ||
| 7 | greg | 1.1 | |
| 8 | |||
| 9 | int | ||
| 10 | fwrite(ptr, size, count, fp) /* system version is broken (*sigh*) */ | ||
| 11 | register char *ptr; | ||
| 12 | int size, count; | ||
| 13 | register FILE *fp; | ||
| 14 | { | ||
| 15 | register long n = size*count; | ||
| 16 | |||
| 17 | while (n--) | ||
| 18 | putc(*ptr++, fp); | ||
| 19 | |||
| 20 | return(ferror(fp) ? 0 : count); | ||
| 21 | } |