blob: 2d5890939db75764d5d092a024bbcfae086f9c3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
* 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
|