ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/fwrite.c
Revision: 2.1
Committed: Tue Nov 12 16:54:26 1991 UTC (32 years, 5 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.2: +0 -0 lines
Log Message:
updated revision number for release 2.0

File Contents

# User Rev Content
1 greg 1.2 /* Copyright 1988 Regents of the University of California */
2 greg 1.1
3     #ifndef lint
4     static char SCCSid[] = "$SunId$ LBL";
5     #endif
6 greg 1.2
7     #include <stdio.h>
8 greg 1.1
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     }