summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-06-17 13:25:01 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-06-17 13:25:01 +0000
commit9a80a7bc2ce5c68997feca8101a421a596d1cc18 (patch)
tree2f3fcf85448f51a8c5c7937ca52329d489d87c61 /include/asterisk
parentfb6f36387fd65f853b16caa9721213130ad178af (diff)
string/whitespace handling cleanups (bug #4449, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rwxr-xr-xinclude/asterisk/utils.h21
1 files changed, 21 insertions, 0 deletions
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
@@ -131,6 +131,27 @@ struct ast_hostent {
};
/*!
+ \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).
\return The stripped string.