Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ae25643cc80970d52b136c7a8446eeffd4532932
[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 #ifndef XBT_STR_H
14 #define XBT_STR_H
15
16 SG_BEGIN_DECL()
17
18 XBT_PUBLIC(int) asprintf  (char **ptr, const char *fmt, /*args*/ ...) _XBT_GNUC_PRINTF(2,3);
19 XBT_PUBLIC(int) vasprintf (char **ptr, const char *fmt, va_list ap);
20 XBT_PUBLIC(char*) bprintf   (const char*fmt, ...) _XBT_GNUC_PRINTF(1,2);
21
22 #if defined(_WIN32) || !defined(__GNUC__)
23 XBT_PUBLIC(long) getline(char **lineptr, size_t *n, FILE *stream);
24 #endif
25
26 SG_END_DECL()
27
28 #endif /* XBT_STR_H */
29
30
31
32