Synesis Software

cstring_t Struct Reference
[cstring API]

#include <cstring/cstring.h>

List of all members.


Detailed Description

The cstring structure

Represents a cstring as a string slice - length + pointer - along with the allocated capacity, and flags controlling the allocation arena and other characteristics.

Public Attributes

size_t len
char * ptr
size_t capacity
cstring_flags_t flags


Member Data Documentation

size_t len

Number of characters.

Referenced by c_str_data_a(), and c_str_len_a().

char* ptr

Pointer to the string. If capacity is 0, the value of this member is undetermined.

Referenced by c_str_data_a().

size_t capacity

Number of bytes available.

Flags. This field belongs to the implementation, and must not be modified by any application code.


The documentation for this struct was generated from the following file:

cstring Library documentation (c) Matthew Wilson and Synesis Software Pty Ltd, 1994-2009