/usr/include/sofia-sip-1.12/sofia-sip/string0.h is in libsofia-sip-ua-dev 1.12.11+20110422.1-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | #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);
su_inline int str0ncmp(char const *a, char const *b, size_t n);
su_inline int str0casecmp(char const *a, char const *b);
su_inline int str0ncasecmp(char const *a, char const *b, size_t n);
su_inline size_t strnspn(char const *s, size_t ssize, char const *term);
su_inline size_t strncspn(char const *s, size_t ssize, char const *term);
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
|