cp_string_len(3)

cp_string(3) cp_string cp_string(3)

NAME

cp_string_len - return the length of a cp_string

SYNOPSIS

#include <cprops/str.h>

int cp_string_len(cp_string *str);

DESCRIPTION

returns the length of the given string. Since the cp_string structure keeps track of the internal buffer's used length, this is an O(1) operation.

RETURN VALUE

the length of the given string.

MARCH 2006 libcprops