Revision: | 1.2 |
Committed: | Thu Feb 2 13:53:41 1989 UTC (36 years, 3 months ago) by greg |
Content type: | text/plain |
Branch: | MAIN |
Changes since 1.1: | +3 -1 lines |
Log Message: | Fixed SCCSid |
# | Content |
---|---|
1 | /* Copyright 1988 Regents of the University of California */ |
2 | |
3 | #ifndef lint |
4 | static char SCCSid[] = "$SunId$ LBL"; |
5 | #endif |
6 | |
7 | #include <stdio.h> |
8 | |
9 | |
10 | int |
11 | fwrite(ptr, size, count, fp) /* system version is broken (*sigh*) */ |
12 | register char *ptr; |
13 | int size, count; |
14 | register FILE *fp; |
15 | { |
16 | register long n = size*count; |
17 | |
18 | while (n--) |
19 | putc(*ptr++, fp); |
20 | |
21 | return(ferror(fp) ? 0 : count); |
22 | } |