diff options
Diffstat (limited to 'src/ivybuffer.h')
-rw-r--r-- | src/ivybuffer.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/ivybuffer.h b/src/ivybuffer.h new file mode 100644 index 0000000..86c5474 --- /dev/null +++ b/src/ivybuffer.h @@ -0,0 +1,39 @@ +/* + * Ivy, C interface + * + * Copyright 1997-2000 + * Centre d'Etudes de la Navigation Aerienne + * + * Sockets + * + * Authors: Francois-Regis Colin <fcolin@cena.dgac.fr> + * + * $Id$ + * + * Please refer to file version.h for the + * copyright notice regarding this software + */ + +#ifndef IVYBUFFER_H +#define IVYBUFFER_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stdarg.h> +typedef struct { + char * data; + int size; + int offset; + } IvyBuffer; +/* utility fonction do make vsprintf without buffer limit */ +extern int make_message(IvyBuffer * buffer, const char *fmt, va_list ap); +extern int make_message_var(IvyBuffer* buffer, const char *fmt, ...); + +#ifdef __cplusplus +} +#endif + +#endif + |