22 #ifndef _LAX_FILEORSTR_H
23 #define _LAX_FILEORSTR_H
57 int printf(
const char *fmt,...);
58 size_t write(
const void *ptr,
size_t size,
size_t nmemb);
59 size_t fread(
void *ptr,
size_t size,
size_t nmemb);
60 int getline(
char **lineptr,
size_t *n);
62 int setpos(
long offset,
int whence=0);
69 const char *Filename();
70 int Open(
const char *filename,
const char *mode);
74 int OpenCString(
const char *str);
75 int OpenInString(
char *str,
long nn,
long nmax);
76 int OpenNewString(
const char *str);
78 int SaveStrToFile(
const char *filename);
79 int GetStrFromFile(
const char *filename);
Mon Feb 17 2014 11:52:56, Laxkit