Back to index

radiance  4R0+20100331
rtio.h
Go to the documentation of this file.
00001 /* RCSid $Id: rtio.h,v 3.9 2006/12/23 17:27:45 greg Exp $ */
00002 /*
00003  *     Radiance i/o and string routines
00004  */
00005 
00006 #ifndef _RAD_RTIO_H_
00007 #define _RAD_RTIO_H_
00008 
00009 #include  <stdio.h>
00010 #include  <sys/types.h>
00011 #include  <fcntl.h>
00012 #include  <string.h>
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017                                    /* defined in badarg.c */
00018 extern int    badarg(int ac, char **av, char *fl);
00019                                    /* defined in expandarg.c */
00020 extern int    expandarg(int *acp, char ***avp, int n);
00021                                    /* defined in fdate.c */
00022 extern time_t fdate(char *fname);
00023 extern int    setfdate(char *fname, long ftim);
00024                                    /* defined in fgetline.c */
00025 extern char   *fgetline(char *s, int n, FILE *fp);
00026                                    /* defined in fgetval.c */
00027 extern int    fgetval(FILE *fp, int ty, void *vp);
00028                                    /* defined in fgetword.c */
00029 extern char   *fgetword(char *s, int n, FILE *fp);
00030                                    /* defined in fputword.c */
00031 extern void   fputword(char *s, FILE *fp);
00032                                    /* defined in fropen.c */
00033 extern FILE   *frlibopen(char *fname);
00034                                    /* defined in getlibpath.c */
00035 extern char   *getrlibpath(void);
00036                                    /* defined in gethomedir.c */
00037 extern char *gethomedir(char *uname, char *path, int plen);
00038                                    /* defined in getpath.c */
00039 extern char   *getpath(char *fname, char *searchpath, int mode);
00040                                    /* defined in byteswap.c */
00041 extern void   swap16(char *wp, int n);
00042 extern void   swap32(char *wp, int n);
00043 extern void   swap64(char *wp, int n);
00044                                    /* defined in portio.c */
00045 extern void   putstr(char *s, FILE *fp);
00046 extern void   putint(long i, int siz, FILE *fp);
00047 extern void   putflt(double f, FILE *fp);
00048 extern char   *getstr(char *s, FILE *fp);
00049 extern long   getint(int siz, FILE *fp);
00050 extern double getflt(FILE *fp);
00051                                    /* defined in rexpr.c */
00052 extern int    ecompile(char *sp, int iflg, int wflag);
00053 extern char   *expsave(void);
00054 extern void   expset(char *ep);
00055 extern char   *eindex(char *sp);
00056                                    /* defined in savestr.c */
00057 extern char   *savestr(char *str);
00058 extern void   freestr(char *s);
00059 extern int    shash(char *s);
00060                                    /* defined in savqstr.c */
00061 extern char   *savqstr(char *s);
00062 extern void   freeqstr(char *s);
00063                                    /* defined in wordfile.c */
00064 extern int    wordfile(char **words, char *fname);
00065 extern int    wordstring(char **avl, char *str);
00066                                    /* defined in words.c */
00067 extern char   *atos(char *rs, int nb, char *s);
00068 extern char   *nextword(char *cp, int nb, char *s);
00069 extern char   *sskip(char *s);
00070 extern char   *sskip2(char *s, int n);
00071 extern char   *iskip(char *s);
00072 extern char   *fskip(char *s);
00073 extern int    isint(char *s);
00074 extern int    isintd(char *s, char *ds);
00075 extern int    isflt(char *s);
00076 extern int    isfltd(char *s, char *ds);
00077                                    /* defined in lamp.c */
00078 extern float *       matchlamp(char *s);
00079 extern int    loadlamps(char *file);
00080 extern void   freelamps(void);
00081 
00082 #ifdef __cplusplus
00083 }
00084 #endif
00085 #endif /* _RAD_RTIO_H_ */
00086