--- ray/src/common/fgetval.c 1995/08/22 08:52:14 2.2 +++ ray/src/common/fgetval.c 2004/03/28 20:33:12 2.8 @@ -1,33 +1,23 @@ -/* Copyright (c) 1995 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: fgetval.c,v 2.8 2004/03/28 20:33:12 schorsch Exp $"; #endif - /* * Read white space separated values from stream + * + * External symbols declared in rtio.h */ -#include +#include "rtio.h" +#include #include - #include - -#ifdef DCL_ATOF -extern double atof(); -#endif -extern int atoi(); -extern long atol(); -extern char *strcpy(); - - int fgetval(fp, ty, vp) /* get specified data word */ register FILE *fp; int ty; -char *vp; +void *vp; /* type depends on ty */ { char wrd[64]; register char *cp;