From 8a86381ef17ee243ec4b1e62cf8e5e59ad919ff8 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Fri, 17 Jun 2005 13:25:01 +0000 Subject: string/whitespace handling cleanups (bug #4449, with mods) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5924 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/utils.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include') diff --git a/include/asterisk/utils.h b/include/asterisk/utils.h index 9cabe679d..06805e82d 100755 --- a/include/asterisk/utils.h +++ b/include/asterisk/utils.h @@ -130,6 +130,27 @@ struct ast_hostent { char buf[1024]; }; +/*! + \brief Gets a pointer to the first non-whitespace character in a string. + \param str the input string + \return a pointer to the first non-whitespace character + */ +char *ast_skip_blanks(char *str); + +/*! + \brief Trims trailing whitespace characters from a string. + \param str the input string + \return a pointer to the NULL following the string + */ +char *ast_trim_blanks(char *str); + +/*! + \brief Gets a pointer to first whitespace character in a string. + \param str the input string + \return a pointer to the first whitespace character + */ +char *ast_skip_nonblanks(char *str); + /*! \brief Strip leading/trailing whitespace from a string. \param s The string to be stripped (will be modified). -- cgit v1.2.3