summaryrefslogtreecommitdiff
path: root/src/ivybuffer.h
diff options
context:
space:
mode:
authorfcolin2006-04-20 15:58:03 +0000
committerfcolin2006-04-20 15:58:03 +0000
commitc19823f72c01c6046b161a372998ab0478459424 (patch)
tree2d31224a5589a5920574a20cf88ececce0bcd26f /src/ivybuffer.h
parent2ed39b250788a32ee77e5af1a923edd64211d128 (diff)
downloadivy-c-c19823f72c01c6046b161a372998ab0478459424.zip
ivy-c-c19823f72c01c6046b161a372998ab0478459424.tar.gz
ivy-c-c19823f72c01c6046b161a372998ab0478459424.tar.bz2
ivy-c-c19823f72c01c6046b161a372998ab0478459424.tar.xz
gestion de buffer a taille variable pour eliminer les pbs de taille static
dans le code
Diffstat (limited to 'src/ivybuffer.h')
-rw-r--r--src/ivybuffer.h39
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
+