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.

char* ptr

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

size_t capacity

Number of bytes available.

cstring_flags_t flags

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