PROP_STRING(3) | Library Functions Manual | PROP_STRING(3) |
prop_string
, prop_string_create
,
prop_string_create_cstring
,
prop_string_create_cstring_nocopy
,
prop_string_copy
,
prop_string_copy_mutable
,
prop_string_size
,
prop_string_mutable
,
prop_string_cstring
,
prop_string_cstring_nocopy
,
prop_string_append
,
prop_string_append_cstring
,
prop_string_equals
,
prop_string_equals_cstring
—
#include <prop/proplib.h>
prop_string_t
prop_string_create
(void);
prop_string_t
prop_string_create_cstring
(const
char *cstring);
prop_string_t
prop_string_create_cstring_nocopy
(const
char *cstring);
prop_string_t
prop_string_copy
(prop_string_t
string);
prop_string_t
prop_string_copy_mutable
(prop_string_t
string);
size_t
prop_string_size
(prop_string_t
string);
bool
prop_string_mutable
(prop_string_t
string);
char *
prop_string_cstring
(prop_string_t
string);
const char *
prop_string_cstring_nocopy
(prop_string_t
string);
bool
prop_string_append
(prop_string_t
str1, prop_string_t
str2);
bool
prop_string_append_cstring
(prop_string_t
string, const char
*cstring);
bool
prop_string_equals
(prop_string_t
str1, prop_string_t
str2);
bool
prop_string_equals_cstring
(prop_string_t
string, const char
*cstring);
prop_string
() family of functions operate on a
string value property object type.
prop_string_create
(void)NULL
on
failure.prop_string_create_cstring
(const
char *cstring)NULL
on
failure.prop_string_create_cstring_nocopy
(const
char *cstring)NULL
on
failure.prop_string_copy
(prop_string_t
string)NULL
on failure.prop_string_copy_mutable
(prop_string_t
string)NULL
on failure.prop_string_size
(prop_string_t
string)prop_string_mutable
(prop_string_t
string)true
if the string is mutable. If the
supplied object isn't a string, false
is
returned.prop_string_cstring
(prop_string_t
string)In user space, the buffer is allocated using
malloc(3). In the kernel,
the buffer is allocated using
malloc(9) using the malloc
type M_TEMP
.
Returns NULL
on failure.
prop_string_cstring_nocopy
(prop_string_t
string)NULL
is returned.prop_string_append
(prop_string_t
str1, prop_string_t str2)true
upon success and
false
otherwise.prop_string_append_cstring
(prop_string_t
string, const char *cstring)true
upon success and
false
otherwise.prop_string_equals
(prop_string_t
str1, prop_string_t str2)true
if the two string objects are
equivalent.prop_string_equals_cstring
(prop_string_t
string, const char *cstring)true
if the string's value is equivalent
to cstring.January 21, 2008 | NetBSD 9.2 |