/*************************************************************************\ * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * This file is distributed subject to a Software License Agreement found * in the file LICENSE that is included with this distribution. \*************************************************************************/ #include #include #include #include #include #define epicsExportSharedSymbols #include #include "chandata.h" struct stat buf; FILE *fr; /* char *readFile0(); char *readPipe(); */ extern int fileno(); extern ssize_t read(); int readFile1(ptr,off_loc) int *off_loc; char *ptr; { int i,l,c,i0; l=0; i=0; c = *ptr; if (c != 0 && c != ' ' && c != '\t') off_loc[0] = 0; else { while(*(ptr+i+1) == ' ' || *(ptr+i+1) == '\t' || *(ptr+i+1) == 0) i++; off_loc[0] = i+1; } i0 = i+1; for (i=i0;i