Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
just a new line at the end of the file
[simgrid.git] / include / xbt / trim.h
index 243be32..93971ff 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef XBT_TRIM_H
 #define XBT_TRIM_H
 
+#include "xbt/misc.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -31,7 +33,7 @@ extern "C" {
  * @return If the specified is NULL the function returns NULL. Otherwise the
  * function returns the string with whitespace stripped from the end.
  */
-char*
+XBT_PUBLIC(char*)
 rtrim(char* s, const char* char_list);
 
 /**  @brief Strip whitespace (or other characters) from the beginning of a string.
@@ -52,7 +54,7 @@ rtrim(char* s, const char* char_list);
  * @return If the specified is NULL the function returns NULL. Otherwise the
  * function returns the string with whitespace stripped from the beginning.
  */
-char*
+XBT_PUBLIC(char*)
 ltrim( char* s, const char* char_list);
 
 
@@ -74,7 +76,7 @@ ltrim( char* s, const char* char_list);
  * @return If the specified is NULL the function returns NULL. Otherwise the
  * function returns the string with whitespace stripped from the end and the begining.
  */
-char* 
+XBT_PUBLIC(char*) 
 trim(char* s, const char* char_list);
 
 
@@ -82,4 +84,6 @@ trim(char* s, const char* char_list);
 }
 #endif
 
-#endif /* !XBT_TRIM_H */ 
\ No newline at end of file
+#endif /* !XBT_TRIM_H */
+
\ No newline at end of file