Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
on windows getline function needs the stdio.h include file
[simgrid.git] / include / xbt / str.h
1 /* $Id$ */
2
3 /* str.h - XBT string related functions.                                    */
4
5 /* Copyright (c) 2004-7, Martin Quinson and Arnaud Legrand.                 */
6 /* All rights reserved.                                                     */
7
8 /* This program is free software; you can redistribute it and/or modify it
9  * under the terms of the license (GNU LGPL) which comes with this package. */
10
11 #include "xbt/misc.h"
12
13
14
15 #ifndef XBT_STR_H
16 #define XBT_STR_H
17
18 #if defined(_WIN32)
19 #include <stdio.h>
20 #endif
21
22 SG_BEGIN_DECL()
23
24 XBT_PUBLIC(int) asprintf  (char **ptr, const char *fmt, /*args*/ ...) _XBT_GNUC_PRINTF(2,3);
25 XBT_PUBLIC(int) vasprintf (char **ptr, const char *fmt, va_list ap);
26 XBT_PUBLIC(char*) bprintf   (const char*fmt, ...) _XBT_GNUC_PRINTF(1,2);
27
28 #if defined(_WIN32) || !defined(__GNUC__)
29 XBT_PUBLIC(long) getline(char **lineptr, size_t *n, FILE *stream);
30 #endif
31
32 SG_END_DECL()
33
34 #endif /* XBT_STR_H */
35
36
37
38