home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.lbl.gov
/
2014.05.ftp.ee.lbl.gov.tar
/
ftp.ee.lbl.gov
/
acld-1.11.tar.gz
/
acld-1.11.tar
/
acld-1.11
/
io.h
< prev
next >
Wrap
C/C++ Source or Header
|
2008-10-24
|
581b
|
24 lines
/* @(#) $Id: io.h 529 2008-10-24 06:57:49Z leres $ (LBL) */
#ifndef acld_io_h
#define acld_io_h
#include <stdarg.h>
/* I/O buffer */
struct iobuf {
char *buf;
size_t size;
size_t len;
};
void ioappendfmt(struct iobuf *, const char *, ...)
__attribute__ ((format (printf, 2, 3)));
void ioappendline(struct iobuf *, const char *, size_t);
void ioappendvfmt(struct iobuf *, const char *, va_list);
void iofree(struct iobuf *);
char *iogetstr(struct iobuf *);
int iohaveline(register struct iobuf *);
int ioread(int, struct iobuf *);
int iowrite(int, struct iobuf *);
#endif