Revision: | 2.3 |
Committed: | Tue Feb 25 02:47:21 2003 UTC (22 years, 2 months ago) by greg |
Content type: | text/plain |
Branch: | MAIN |
CVS Tags: | rad3R6P1, rad3R5, rad3R6 |
Changes since 2.2: | +1 -56 lines |
Log Message: | Replaced inline copyright notice with #include "copyright.h" |
# | Content |
---|---|
1 | #ifndef lint |
2 | static const char RCSid[] = "$Id$"; |
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 | } |