Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
merge trim.h into str.h, where it belongs to
[simgrid.git] / include / xbt / str.h
index 6a9bccf..6068247 100644 (file)
@@ -2,7 +2,7 @@
 
 /* str.h - XBT string related functions.                                    */
 
-/* Copyright (c) 2004-7, Martin Quinson and Arnaud Legrand.                 */
+/* Copyright (c) 2004-7, Martin Quinson, Arnaud Legrand and  Cherier Malek. */
 /* All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -29,6 +29,11 @@ XBT_PUBLIC(char*) bprintf   (const char*fmt, ...) _XBT_GNUC_PRINTF(1,2);
 XBT_PUBLIC(long) getline(char **lineptr, size_t *n, FILE *stream);
 #endif
 
+/* Trim related functions */
+XBT_PUBLIC(char*) rtrim(char* s, const char* char_list);
+XBT_PUBLIC(char*) ltrim( char* s, const char* char_list);
+XBT_PUBLIC(char*) trim(char* s, const char* char_list);
+
 SG_END_DECL()
 
 #endif /* XBT_STR_H */