Next: , Up: ascii non-zero   [Contents][Index]


7.1.1 Constructors for ASCII strings

Function: ccmem_ascii_t ccmem_new_ascii (char * ptr, size_t len)

Build and return a new instance, initialised with the given operands.

Function: ccmem_ascii_t ccmem_new_ascii_empty (void)

Build and return a new instance, representing an empty string. The pointer field references a statically allocated empty string; the length field is set to zero.

Function: ccmem_ascii_t ccmem_new_ascii_null (void)

Build and return a new instance: the pointer field is set to NULL; the length field is set to zero.

Function: ccmem_ascii_t ccmem_new_ascii_from_str (char * str)

Build and return a new instance, initialised with the given pointer to an ASCIIZ string. The length of the string is determined with a call to strlen().

Function: ccmem_ascii_t ccmem_new_ascii_from_block (ccmem_block_t B)

Build and return a new instance initialised with the fields from the given block. The block is supposed to hold a valid ASCII string, with no zero characters inside.

Function: ccmem_ascii_t ccmem_new_ascii_from_asciiz (ccmem_asciiz_t B)

Build and return a new instance initialised with the fields from the given ASCIIZ string.


Next: , Up: ascii non-zero   [Contents][Index]

This document describes version 0.2.2-devel.3 of CCMemory.