#include <stdio.h>#include <string.h>#include <stdarg.h>#include "arch.h"#include "tdef.h"


Ir al código fuente de este archivo.
Estructuras de datos | |
| struct | fntmp |
Definiciones | |
| #define | CL_SWITCH "-/" |
| #define | FILE_COMMENT "#;" |
| #define | FILE_STRCODE '"' |
| #define | FILE_KVASSIGN '=' |
| #define | show_srcpos() __show_srcpos(__FILE__,__LINE__) |
| #define | cshow_srcpos(c) if (c) __show_srcpos(__FILE__,__LINE__) |
| #define | XFILE_EOFE_NEVER 0 |
| #define | XFILE_EOFE_RETRY 1 |
| #define | XFILE_EOFE_ALWAYS 2 |
| #define | fgetlnf(s, n, fp) fgetln_filt(s,n,fp,1,8,1,NULL) |
| #define | xfgetlnf(s, n, fp) xfgetln_filt(s,n,fp,1,8,1,NULL) |
| #define | eof_error_off() set_eof_error(XFILE_EOFE_NEVER) |
| #define | eof_error_on() set_eof_error(XFILE_EOFE_ALWAYS) |
| #define | xfeof(fp) feof(fp) |
| #define | PATH_DIRSEP '\\' |
| #define | PATH_DRIVESEP ':' |
| #define | PATH_EXT_BAK ".bak" |
| #define | path_dirextchange(fname, new_dir, new_ext) path_dirchange(path_extchange(fname,new_ext),new_dir) |
| #define | path_applyrule(source, dest) path_src2destp(source,dest,NULL) |
| #define | endian_tolittle16(w) endian_swap16(w) |
| #define | endian_tolittle32(w) endian_swap32(w) |
| #define | endian_tolittle64(w) endian_swap64(w) |
| #define | endian_fromlittle16(w) endian_swap16(w) |
| #define | endian_fromlittle32(w) endian_swap32(w) |
| #define | endian_fromlittle64(w) endian_swap64(w) |
| #define | endian_tolittle16_n(w, n) endian_swap16_n(w,n) |
| #define | endian_tolittle32_n(w, n) endian_swap32_n(w,n) |
| #define | endian_tolittle64_n(w, n) endian_swap64_n(w,n) |
| #define | endian_fromlittle16_n(w, n) endian_swap16_n(w,n) |
| #define | endian_fromlittle32_n(w, n) endian_swap32_n(w,n) |
| #define | endian_fromlittle64_n(w, n) endian_swap64_n(w,n) |
| #define | endian_tobig16(w) endian_swap16(w) |
| #define | endian_tobig32(w) endian_swap32(w) |
| #define | endian_tobig64(w) endian_swap64(w) |
| #define | endian_frombig16(w) endian_swap16(w) |
| #define | endian_frombig32(w) endian_swap32(w) |
| #define | endian_frombig64(w) endian_swap64(w) |
| #define | endian_tobig16_n(w, n) endian_swap16_n(w,n) |
| #define | endian_tobig32_n(w, n) endian_swap32_n(w,n) |
| #define | endian_tobig64_n(w, n) endian_swap64_n(w,n) |
| #define | endian_frombig16_n(w, n) endian_swap16_n(w,n) |
| #define | endian_frombig32_n(w, n) endian_swap32_n(w,n) |
| #define | endian_frombig64_n(w, n) endian_swap64_n(w,n) |
Funciones | |
| int | nptrs (const void *const *ptrarray) |
| int | str_match (const char *const *strarr, int nstrs, const char *str, int lcode, int case_sensitive) |
| int | label_match (const char *const *labelarr, int nlabels, const char *label, int case_sensitive, int allow_partial) |
| int | xstr_match (const char *const *strarr, int nstrs, const char *str, int lcode, int case_sensitive) |
| int | xlabel_match (const char *const *labelarr, int nlabels, const char *label, int case_sensitive, int allow_partial) |
| int | str2k (const char *str, const char *const *labels, int defval, int case_sensitive, int allow_partial) |
| void | die (const char *fmt,...) |
| void | die_beep (const char *fmt,...) |
| void | cdie (int condition, const char *fmt,...) |
| void | cdie_beep (int condition, const char *fmt,...) |
| void | vdie (const char *fmt, va_list argptr) |
| void | vdie_beep (const char *fmt, va_list argptr) |
| void | vcdie (int condition, const char *fmt, va_list argptr) |
| void | vcdie_beep (int condition, const char *fmt, va_list argptr) |
| void | __show_srcpos (const char *file, int line) |
| char * | fgetln (char *s, int n, FILE *fp, int *tl) |
| char * | fgetln_filt (char *s, int n, FILE *fp, int rm_comnt, int rm_white, int rm_wline, int *tl) |
| long | flen (FILE *fp) |
| int | ftrunc (FILE *fp) |
| int | fmoven (FILE *fp, long from, long to, long n) |
| int | finsn (FILE *fp, long pos, long n) |
| int | fdeln (FILE *fp, long pos, long n) |
| char * | xfgetln (char *s, int n, FILE *fp, int *tl) |
| char * | xfgetln_filt (char *s, int n, FILE *fp, int rm_comnt, int rm_white, int rm_wline, int *tl) |
| long | xflen (FILE *fp) |
| int | xftrunc (FILE *fp) |
| int | xfmoven (FILE *fp, long from, long to, long n) |
| int | xfinsn (FILE *fp, long pos, long n) |
| int | xfdeln (FILE *fp, long pos, long n) |
| void | xfile_error (const char *fn) |
| int | set_eof_error (int eof_error) |
| int | get_eof_error (void) |
| int | xfclose (FILE *fp) |
| int | xfflush (FILE *fp) |
| int | xfgetc (FILE *fp) |
| int | xfgetpos (FILE *fp, fpos_t *pos) |
| char * | xfgets (char *s, int n, FILE *fp) |
| FILE * | xfopen (const char *filename, const char *mode) |
| int | xfputc (int c, FILE *fp) |
| int | xfputs (const char *s, FILE *fp) |
| size_t | xfread (void *ptr, size_t size, size_t n, FILE *fp) |
| int | xfseek (FILE *fp, long int offset, int whence) |
| int | xfsetpos (FILE *fp, const fpos_t *pos) |
| long int | xftell (FILE *fp) |
| size_t | xfwrite (const void *ptr, size_t size, size_t n, FILE *fp) |
| int | xrename (const char *oldname, const char *newname) |
| int | xremove (const char *filename) |
| char * | str_stripch (char *str, char sch) |
| char * | str_stripchset (char *str, const char *schs) |
| char * | str_cutfromch (char *s, char cutch) |
| char * | str_cutfromchset (char *s, const char *cutchset) |
| char * | str_xchr (const char *s, char ch) |
| char * | str_xchrnext (const char *s, char ch) |
| char * | str_xchrnextdiv (char *s, char ch) |
| char * | str_assignptr (const char *s) |
| char * | str_assignptrnext (const char *s) |
| int | str_isswitch (const char *str) |
| int | str2si (const char *str, short int *si) |
| int | str2i (const char *str, int *ii) |
| int | str2li (const char *str, long int *li) |
| int | str2f (const char *str, float *f) |
| int | str2d (const char *str, double *d) |
| int | str2ld (const char *str, long double *ld) |
| short int | xstr2si (const char *str, short int defval) |
| int | xstr2i (const char *str, int defval) |
| long int | xstr2li (const char *str, long int defval) |
| float | xstr2f (const char *str, float defval) |
| double | xstr2d (const char *str, double defval) |
| long double | xstr2ld (const char *str, long double defval) |
| int | str2bool (const char *str, int def) |
| const char * | bool2str (int boo) |
| const char * | strsearch (const char *txt, const char *sub, int casesens) |
| char * | vstr_dup (char *oldvs, const char *newstr) |
| void | vstr_free (char *vs) |
| char * | vstr_getstr (const char *vs, const char *defval) |
| fntmp * | fntmp_construct (const char *dest, const char *tmpfile) |
| const char * | fntmp_getname (fntmp *f) |
| void | fntmp_destruct (fntmp *f) |
| size_t | path_namepos (const char *path) |
| size_t | path_extpos (const char *path) |
| char * | path_dirchange (char *path, const char *new_dir) |
| char * | path_namechange (char *path, const char *new_name) |
| char * | path_extchange (char *path, const char *new_ext) |
| char * | path_src2dest (const char *source, const char *dest) |
| char * | path_src2deste (const char *source, const char *dest, const char *dext) |
| char * | path_src2destp (const char *source, const char *dest, const char *dpath) |
| char * | path_src2destde (const char *source, const char *dest, const char *ddir, const char *dext) |
| int | frename_del (const char *name, const char *new_name) |
| int | frename_ext_del (const char *name, const char *new_ext) |
| int | frename_bak (const char *name, const char *new_name) |
| int | frename_ext_bak (const char *name, const char *new_ext) |
| void | xfrename_del (const char *name, const char *new_name) |
| void | xfrename_ext_del (const char *name, const char *new_ext) |
| void | xfrename_bak (const char *name, const char *new_name) |
| void | xfrename_ext_bak (const char *name, const char *new_ext) |
| double | fround (double n) |
| int | float2int (double n) |
| long | float2long (double n) |
| double | cuadfit (double y1, double y2, double y3, double *y) |
| double | linterpol (double x, double x1, double x2, double y1, double y2) |
| void | endian_swap16 (VOID *word16) |
| void | endian_swap32 (VOID *word32) |
| void | endian_swap64 (VOID *word32) |
| void | endian_swap16_n (VOID *word16, int n) |
| void | endian_swap32_n (VOID *word32, int n) |
| void | endian_swap64_n (VOID *word32, int n) |
| #define show_srcpos | ( | ) | __show_srcpos(__FILE__,__LINE__) |
| #define cshow_srcpos | ( | c | ) | if (c) __show_srcpos(__FILE__,__LINE__) |
| #define fgetlnf | ( | s, | |||
| n, | |||||
| fp | ) | fgetln_filt(s,n,fp,1,8,1,NULL) |
| #define xfgetlnf | ( | s, | |||
| n, | |||||
| fp | ) | xfgetln_filt(s,n,fp,1,8,1,NULL) |
| #define eof_error_off | ( | ) | set_eof_error(XFILE_EOFE_NEVER) |
| #define eof_error_on | ( | ) | set_eof_error(XFILE_EOFE_ALWAYS) |
| #define path_dirextchange | ( | fname, | |||
| new_dir, | |||||
| new_ext | ) | path_dirchange(path_extchange(fname,new_ext),new_dir) |
| #define path_applyrule | ( | source, | |||
| dest | ) | path_src2destp(source,dest,NULL) |
| #define endian_tolittle16_n | ( | w, | |||
| n | ) | endian_swap16_n(w,n) |
| #define endian_tolittle32_n | ( | w, | |||
| n | ) | endian_swap32_n(w,n) |
| #define endian_tolittle64_n | ( | w, | |||
| n | ) | endian_swap64_n(w,n) |
| #define endian_fromlittle16_n | ( | w, | |||
| n | ) | endian_swap16_n(w,n) |
| #define endian_fromlittle32_n | ( | w, | |||
| n | ) | endian_swap32_n(w,n) |
| #define endian_fromlittle64_n | ( | w, | |||
| n | ) | endian_swap64_n(w,n) |
| #define endian_tobig16_n | ( | w, | |||
| n | ) | endian_swap16_n(w,n) |
| #define endian_tobig32_n | ( | w, | |||
| n | ) | endian_swap32_n(w,n) |
| #define endian_tobig64_n | ( | w, | |||
| n | ) | endian_swap64_n(w,n) |
| #define endian_frombig16_n | ( | w, | |||
| n | ) | endian_swap16_n(w,n) |
| #define endian_frombig32_n | ( | w, | |||
| n | ) | endian_swap32_n(w,n) |
| #define endian_frombig64_n | ( | w, | |||
| n | ) | endian_swap64_n(w,n) |
| int nptrs | ( | const void *const * | ptrarray | ) |
Definición en la línea 165 del archivo uti_misc.c.
| int str_match | ( | const char *const * | strarr, | |
| int | nstrs, | |||
| const char * | str, | |||
| int | lcode, | |||
| int | case_sensitive | |||
| ) |
Definición en la línea 54 del archivo uti_misc.c.
| int label_match | ( | const char *const * | labelarr, | |
| int | nlabels, | |||
| const char * | label, | |||
| int | case_sensitive, | |||
| int | allow_partial | |||
| ) |
Definición en la línea 118 del archivo uti_misc.c.
| int xstr_match | ( | const char *const * | strarr, | |
| int | nstrs, | |||
| const char * | str, | |||
| int | lcode, | |||
| int | case_sensitive | |||
| ) |
Definición en la línea 96 del archivo uti_misc.c.
| int xlabel_match | ( | const char *const * | labelarr, | |
| int | nlabels, | |||
| const char * | label, | |||
| int | case_sensitive, | |||
| int | allow_partial | |||
| ) |
Definición en la línea 137 del archivo uti_misc.c.
| int str2k | ( | const char * | str, | |
| const char *const * | labels, | |||
| int | defval, | |||
| int | case_sensitive, | |||
| int | allow_partial | |||
| ) |
Definición en la línea 152 del archivo uti_misc.c.
| void cdie_beep | ( | int | condition, | |
| const char * | fmt, | |||
| ... | ||||
| ) |
| void vdie_beep | ( | const char * | fmt, | |
| va_list | argptr | |||
| ) |
| void vcdie | ( | int | condition, | |
| const char * | fmt, | |||
| va_list | argptr | |||
| ) |
| void vcdie_beep | ( | int | condition, | |
| const char * | fmt, | |||
| va_list | argptr | |||
| ) |
| void __show_srcpos | ( | const char * | file, | |
| int | line | |||
| ) |
Definición en la línea 182 del archivo uti_misc.c.
| char* fgetln | ( | char * | s, | |
| int | n, | |||
| FILE * | fp, | |||
| int * | tl | |||
| ) |
Definición en la línea 367 del archivo uti_file.c.
| char* fgetln_filt | ( | char * | s, | |
| int | n, | |||
| FILE * | fp, | |||
| int | rm_comnt, | |||
| int | rm_white, | |||
| int | rm_wline, | |||
| int * | tl | |||
| ) |
Definición en la línea 485 del archivo uti_file.c.
| long flen | ( | FILE * | fp | ) |
Definición en la línea 502 del archivo uti_file.c.
| int ftrunc | ( | FILE * | fp | ) |
| int fmoven | ( | FILE * | fp, | |
| long | from, | |||
| long | to, | |||
| long | n | |||
| ) |
Definición en la línea 587 del archivo uti_file.c.
| int finsn | ( | FILE * | fp, | |
| long | pos, | |||
| long | n | |||
| ) |
Definición en la línea 636 del archivo uti_file.c.
| int fdeln | ( | FILE * | fp, | |
| long | pos, | |||
| long | n | |||
| ) |
Definición en la línea 667 del archivo uti_file.c.
| char* xfgetln | ( | char * | s, | |
| int | n, | |||
| FILE * | fp, | |||
| int * | tl | |||
| ) |
Definición en la línea 685 del archivo uti_file.c.
| char* xfgetln_filt | ( | char * | s, | |
| int | n, | |||
| FILE * | fp, | |||
| int | rm_comnt, | |||
| int | rm_white, | |||
| int | rm_wline, | |||
| int * | tl | |||
| ) |
Definición en la línea 700 del archivo uti_file.c.
| long xflen | ( | FILE * | fp | ) |
Definición en la línea 716 del archivo uti_file.c.
| int xftrunc | ( | FILE * | fp | ) |
Definición en la línea 731 del archivo uti_file.c.
| int xfmoven | ( | FILE * | fp, | |
| long | from, | |||
| long | to, | |||
| long | n | |||
| ) |
Definición en la línea 744 del archivo uti_file.c.
| int xfinsn | ( | FILE * | fp, | |
| long | pos, | |||
| long | n | |||
| ) |
Definición en la línea 757 del archivo uti_file.c.
| int xfdeln | ( | FILE * | fp, | |
| long | pos, | |||
| long | n | |||
| ) |
Definición en la línea 770 del archivo uti_file.c.
| void xfile_error | ( | const char * | fn | ) |
Definición en la línea 59 del archivo uti_file.c.
| int set_eof_error | ( | int | eof_error | ) |
Definición en la línea 98 del archivo uti_file.c.
| int get_eof_error | ( | void | ) |
Definición en la línea 110 del archivo uti_file.c.
| int xfclose | ( | FILE * | fp | ) |
Definición en la línea 125 del archivo uti_file.c.
| int xfflush | ( | FILE * | fp | ) |
Definición en la línea 153 del archivo uti_file.c.
| int xfgetc | ( | FILE * | fp | ) |
Definición en la línea 165 del archivo uti_file.c.
| int xfgetpos | ( | FILE * | fp, | |
| fpos_t * | pos | |||
| ) |
Definición en la línea 179 del archivo uti_file.c.
| char* xfgets | ( | char * | s, | |
| int | n, | |||
| FILE * | fp | |||
| ) |
Definición en la línea 191 del archivo uti_file.c.
| FILE* xfopen | ( | const char * | filename, | |
| const char * | mode | |||
| ) |
Definición en la línea 216 del archivo uti_file.c.
| int xfputc | ( | int | c, | |
| FILE * | fp | |||
| ) |
Definición en la línea 232 del archivo uti_file.c.
| int xfputs | ( | const char * | s, | |
| FILE * | fp | |||
| ) |
Definición en la línea 244 del archivo uti_file.c.
| size_t xfread | ( | void * | ptr, | |
| size_t | size, | |||
| size_t | n, | |||
| FILE * | fp | |||
| ) |
Definición en la línea 256 del archivo uti_file.c.
| int xfseek | ( | FILE * | fp, | |
| long int | offset, | |||
| int | whence | |||
| ) |
Definición en la línea 268 del archivo uti_file.c.
| int xfsetpos | ( | FILE * | fp, | |
| const fpos_t * | pos | |||
| ) |
Definición en la línea 280 del archivo uti_file.c.
| long int xftell | ( | FILE * | fp | ) |
Definición en la línea 292 del archivo uti_file.c.
| size_t xfwrite | ( | const void * | ptr, | |
| size_t | size, | |||
| size_t | n, | |||
| FILE * | fp | |||
| ) |
Definición en la línea 304 del archivo uti_file.c.
| int xrename | ( | const char * | oldname, | |
| const char * | newname | |||
| ) |
Definición en la línea 316 del archivo uti_file.c.
| int xremove | ( | const char * | filename | ) |
Definición en la línea 328 del archivo uti_file.c.
| char* str_stripchset | ( | char * | str, | |
| const char * | schs | |||
| ) |
| char* str_cutfromchset | ( | char * | s, | |
| const char * | cutchset | |||
| ) |
| short int xstr2si | ( | const char * | str, | |
| short int | defval | |||
| ) |
| long int xstr2li | ( | const char * | str, | |
| long int | defval | |||
| ) |
| long double xstr2ld | ( | const char * | str, | |
| long double | defval | |||
| ) |
| const char* strsearch | ( | const char * | txt, | |
| const char * | sub, | |||
| int | casesens | |||
| ) |
| char* vstr_dup | ( | char * | oldvs, | |
| const char * | newstr | |||
| ) |
| char* vstr_getstr | ( | const char * | vs, | |
| const char * | defval | |||
| ) |
| fntmp* fntmp_construct | ( | const char * | dest, | |
| const char * | tmpfile | |||
| ) |
Definición en la línea 43 del archivo uti_path.c.
| const char* fntmp_getname | ( | fntmp * | f | ) |
Definición en la línea 61 del archivo uti_path.c.
| void fntmp_destruct | ( | fntmp * | f | ) |
Definición en la línea 71 del archivo uti_path.c.
| size_t path_namepos | ( | const char * | path | ) |
Definición en la línea 85 del archivo uti_path.c.
| size_t path_extpos | ( | const char * | path | ) |
Definición en la línea 100 del archivo uti_path.c.
| char* path_dirchange | ( | char * | path, | |
| const char * | new_dir | |||
| ) |
Definición en la línea 117 del archivo uti_path.c.
| char* path_namechange | ( | char * | path, | |
| const char * | new_name | |||
| ) |
Definición en la línea 132 del archivo uti_path.c.
| char* path_extchange | ( | char * | path, | |
| const char * | new_ext | |||
| ) |
Definición en la línea 148 del archivo uti_path.c.
| char* path_src2dest | ( | const char * | source, | |
| const char * | dest | |||
| ) |
Definición en la línea 416 del archivo uti_path.c.
| char* path_src2deste | ( | const char * | source, | |
| const char * | dest, | |||
| const char * | dext | |||
| ) |
Definición en la línea 427 del archivo uti_path.c.
| char* path_src2destp | ( | const char * | source, | |
| const char * | dest, | |||
| const char * | dpath | |||
| ) |
Definición en la línea 353 del archivo uti_path.c.
| char* path_src2destde | ( | const char * | source, | |
| const char * | dest, | |||
| const char * | ddir, | |||
| const char * | dext | |||
| ) |
Definición en la línea 275 del archivo uti_path.c.
| int frename_del | ( | const char * | name, | |
| const char * | new_name | |||
| ) |
Definición en la línea 160 del archivo uti_path.c.
| int frename_ext_del | ( | const char * | name, | |
| const char * | new_ext | |||
| ) |
Definición en la línea 180 del archivo uti_path.c.
| int frename_bak | ( | const char * | name, | |
| const char * | new_name | |||
| ) |
Definición en la línea 211 del archivo uti_path.c.
| int frename_ext_bak | ( | const char * | name, | |
| const char * | new_ext | |||
| ) |
Definición en la línea 230 del archivo uti_path.c.
| void xfrename_del | ( | const char * | name, | |
| const char * | new_name | |||
| ) |
Definición en la línea 169 del archivo uti_path.c.
| void xfrename_ext_del | ( | const char * | name, | |
| const char * | new_ext | |||
| ) |
Definición en la línea 195 del archivo uti_path.c.
| void xfrename_bak | ( | const char * | name, | |
| const char * | new_name | |||
| ) |
Definición en la línea 220 del archivo uti_path.c.
| void xfrename_ext_bak | ( | const char * | name, | |
| const char * | new_ext | |||
| ) |
Definición en la línea 245 del archivo uti_path.c.
| double fround | ( | double | n | ) |
Definición en la línea 34 del archivo uti_math.c.
| int float2int | ( | double | n | ) |
Definición en la línea 43 del archivo uti_math.c.
| long float2long | ( | double | n | ) |
Definición en la línea 52 del archivo uti_math.c.
| double cuadfit | ( | double | y1, | |
| double | y2, | |||
| double | y3, | |||
| double * | y | |||
| ) |
Definición en la línea 67 del archivo uti_math.c.
| double linterpol | ( | double | x, | |
| double | x1, | |||
| double | x2, | |||
| double | y1, | |||
| double | y2 | |||
| ) |
Definición en la línea 103 del archivo uti_math.c.
1.5.6