Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
export trim functions
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 11 Apr 2007 15:16:53 +0000 (15:16 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 11 Apr 2007 15:16:53 +0000 (15:16 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3376 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/trim.h

index 243be32..39aa45b 100644 (file)
@@ -9,6 +9,8 @@
 #ifndef XBT_TRIM_H
 #define XBT_TRIM_H
 
 #ifndef XBT_TRIM_H
 #define XBT_TRIM_H
 
+#include "xbt/misc.h"
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -32,7 +34,7 @@ extern "C" {
  * function returns the string with whitespace stripped from the end.
  */
 char*
  * function returns the string with whitespace stripped from the end.
  */
 char*
-rtrim(char* s, const char* char_list);
+XBT_PUBLIC(rtrim)(char* s, const char* char_list);
 
 /**  @brief Strip whitespace (or other characters) from the beginning of a string.
  *
 
 /**  @brief Strip whitespace (or other characters) from the beginning of a string.
  *
@@ -53,7 +55,7 @@ rtrim(char* s, const char* char_list);
  * function returns the string with whitespace stripped from the beginning.
  */
 char*
  * function returns the string with whitespace stripped from the beginning.
  */
 char*
-ltrim( char* s, const char* char_list);
+XBT_PUBLIC(ltrim)( char* s, const char* char_list);
 
 
 /**  @brief Strip whitespace (or other characters) from the end and the begining of a string.
 
 
 /**  @brief Strip whitespace (or other characters) from the end and the begining of a string.
@@ -75,7 +77,7 @@ ltrim( char* s, const char* char_list);
  * function returns the string with whitespace stripped from the end and the begining.
  */
 char* 
  * function returns the string with whitespace stripped from the end and the begining.
  */
 char* 
-trim(char* s, const char* char_list);
+XBT_PUBLIC(trim)(char* s, const char* char_list);
 
 
 #ifdef __cplusplus
 
 
 #ifdef __cplusplus