ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/wordfile.c
(Generate patch)

Comparing ray/src/common/wordfile.c (file contents):
Revision 2.6 by greg, Fri Apr 2 09:11:35 1993 UTC vs.
Revision 2.9 by greg, Tue Feb 25 02:47:22 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1992 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Load whitespace separated words from a file into an array.
6   * Assume the passed pointer array is big enough to hold them all.
7 + *
8 + * External symbols declared in standard.h
9   */
10  
11 + #include "copyright.h"
12 +
13   #include <ctype.h>
14  
15   #define NULL            0
# Line 27 | Line 28 | char   *fname;
28          char    buf[MAXFLEN];
29          register int    n;
30                                          /* load file into buffer */
31 +        if (fname == NULL)
32 +                return(-1);                     /* no filename */
33          if ((fd = open(fname, 0)) < 0)
34                  return(-1);                     /* open error */
35          n = read(fd, buf, MAXFLEN);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines