1 /* str.h - XBT string related functions. */
3 /* Copyright (c) 2007-2015. The SimGrid Team.
4 * All rights reserved. */
6 /* This program is free software; you can redistribute it and/or modify it
7 * under the terms of the license (GNU LGPL) which comes with this package. */
12 #include <stdint.h> /* ssize_t */
13 #include <stdarg.h> /* va_* */
14 #include <stdio.h> /* FILE */
15 #include <stdlib.h> /* size_t, ssize_t */
17 #include "xbt/dynar.h"
19 #include "simgrid_config.h" /* FILE for getline */
23 /** @addtogroup XBT_file
24 * @brief File manipulation functions
26 * This module redefine some quite classical functions such as xbt_getline() or xbt_dirname() for the platforms
30 /* Our own implementation of getline, mainly useful on the platforms not enjoying this function */
31 XBT_PUBLIC(ssize_t) xbt_getline(char **lineptr, size_t * n, FILE * stream);
33 /* Our own implementation of dirname, that does not exist on windows */
34 XBT_PUBLIC(char *) xbt_dirname(const char *path);
35 XBT_PUBLIC(char *) xbt_basename(const char *path);
41 #endif /* XBT_FILE_H */