#ifndef XBT_TRIM_H
#define XBT_TRIM_H
-#ifdef __cplusplus
-extern "C" {
-#endif
+#include "xbt/misc.h"
+
+SG_BEGIN_DECL()
/** @brief Strip whitespace (or other characters) from the end of a string.
*
* @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.
* @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);
* @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);
+SG_END_DECL()
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* !XBT_TRIM_H */
\ No newline at end of file
+#endif /* !XBT_TRIM_H */