comparison common/strhelp.h @ 133:c719d3fdbc15

Added functrion to trim white space from string.
author Sascha Wilde <wilde@intevation.de>
date Mon, 24 Mar 2014 15:11:47 +0100
parents 9104b1b2e4da
children bf4bfd8843bd
comparison
equal deleted inserted replaced
132:4691d9e3b1d3 133:c719d3fdbc15
64 * @param[in] s2 the string which is searched for 64 * @param[in] s2 the string which is searched for
65 * @returns true if s1 starts with s2, false otherwise 65 * @returns true if s1 starts with s2, false otherwise
66 */ 66 */
67 bool str_starts_with (char *s1, char *s2); 67 bool str_starts_with (char *s1, char *s2);
68 68
69 /**
70 * @brief Trims all white space from the start and end of string.
71 * @details the start of the string is trimmed by setting *s to the
72 * first non white space character. The end is trimmed by setting the
73 * first character after the last non white space character to \0.
74 * @param[inout] s ponter to the string to strip
75 */
76 bool str_trim (char **s);
77
69 #endif 78 #endif

http://wald.intevation.org/projects/trustbridge/