*** empty log message ***

This commit is contained in:
cvs
2000-03-08 13:41:57 +00:00
parent d50d83f2e7
commit 749772c6ae
13 changed files with 1197 additions and 0 deletions

20
tecs/buf.h Normal file
View File

@@ -0,0 +1,20 @@
typedef struct { char *buf; char *start; int size; int usize; int isize, dummy; } buf_type;
/* input */
void buf_reset(buf_type *buf);
int buf_get_int(buf_type *buf);
char *buf_get_str(buf_type *buf);
float buf_get_float(buf_type *buf);
int buf_size(buf_type *buf);
/* output */
void buf_put_start(buf_type *buf);
void buf_put_int(buf_type *buf, int val);
void buf_put_str(buf_type *buf, char *str);
void buf_put_float(buf_type *buf, float val);
void buf_put_end(buf_type *buf);
/* common */
buf_type *buf_create(size_t size);
void buf_free(buf_type *buf);
void buf_log(buf_type *buf);