mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-10 03:48:34 +00:00
string/whitespace handling cleanups (bug #4449, with mods)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5924 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user