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