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

Comparing ray/src/util/glarendx.c (file contents):
Revision 2.7 by greg, Sat Feb 22 02:07:30 2003 UTC vs.
Revision 2.8 by schorsch, Mon Jun 30 14:59:13 2003 UTC

# Line 19 | Line 19 | static const char      RCSid[] = "$Id$";
19   *              19 April 1993   R. Compagnon    EPFL (added dgi, brs_gi, ugr)
20   */
21  
22 + #include <string.h>
23 +
24   #include "standard.h"
25   #include "view.h"
26  
# Line 72 | Line 74 | main(argc, argv)
74   int     argc;
75   char    *argv[];
76   {
75        extern char     *rindex();
77          struct named_func       *funp;
78          char    *progtail;
79          int     i;
80                                          /* get program name */
81          progname = argv[0];
82 <        progtail = rindex(progname, '/');       /* final component */
82 >        progtail = strrchr(progname, '/');      /* final component */
83          if (progtail == NULL)
84                  progtail = progname;
85          else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines