ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/fwrite.c
Revision: 2.3
Committed: Tue Feb 25 02:47:21 2003 UTC (21 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"

File Contents

# User Rev Content
1 greg 1.1 #ifndef lint
2 greg 2.2 static const char RCSid[] = "$Id$";
3 greg 1.1 #endif
4 greg 2.3 #include "copyright.h"
5 greg 1.2
6     #include <stdio.h>
7 greg 1.1
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     }