Revision: | 2.4 |
Committed: | Fri Nov 5 03:31:36 2004 UTC (20 years, 6 months 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) |
# | Content |
---|---|
1 | #ifndef lint |
2 | static const char RCSid[] = "$Id: fwrite.c,v 2.3 2003/02/25 02:47:21 greg Exp $"; |
3 | #endif |
4 | #include "copyright.h" |
5 | |
6 | #include <stdio.h> |
7 | |
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 | } |