Michael Jerris aee3e653cc Thu Jan 8 11:55:52 CST 2009 Pekka Pessi <first.last@nokia.com>
* sofia-sip/string0.h: use functions from <sofia-sip/su_string.h>



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11784 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-11 16:23:44 +00:00

48 lines
1.1 KiB
C

#ifndef STRING0_H
/** Defined when <sofia-sip/string0.h> is included. */
#define STRING0_H
/**@file sofia-sip/string0.h
*
* @brief Extra string functions.
*
* String comparison functions accepting NULL pointers: str0cmp(),
* str0ncmp(), str0casecmp(), str0ncasecmp(). Also includes span functions
* testing at most @a n bytes: strncspn(), strnspn().
*
* @deprecated Use functions from <sofia-sip/su_string.h> instead.
*/
#include <sofia-sip/su_string.h>
su_inline int str0cmp(char const *a, char const *b)
{
return su_strcmp(a, b);
}
su_inline int str0ncmp(char const *a, char const *b, size_t n)
{
return su_strncmp(a, b, n);
}
su_inline int str0casecmp(char const *a, char const *b)
{
return su_strcasecmp(a, b);
}
su_inline int str0ncasecmp(char const *a, char const *b, size_t n)
{
return su_strncasecmp(a, b, n);
}
su_inline size_t strnspn(char const *s, size_t ssize, char const *term)
{
return su_strnspn(s, ssize, term);
}
su_inline size_t strncspn(char const *s, size_t ssize, char const *term)
{
return su_strncspn(s, ssize, term);
}
#endif