[Asterisk-cvs] asterisk/include/asterisk utils.h,1.34,1.35

kpfleming at lists.digium.com kpfleming at lists.digium.com
Fri Jun 17 09:23:45 CDT 2005


Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv31275/include/asterisk

Modified Files:
	utils.h 
Log Message:
string/whitespace handling cleanups (bug #4449, with mods)


Index: utils.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/utils.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- utils.h	14 Jun 2005 14:45:51 -0000	1.34
+++ utils.h	17 Jun 2005 13:25:01 -0000	1.35
@@ -131,6 +131,27 @@
 };
 
 /*!
+  \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.




More information about the svn-commits mailing list