libstring
simple flexible string manipulation library
 All Data Structures Files Functions Variables Typedefs Macros
Data Fields
_string_real Struct Reference

#include <libstring.h>

Data Fields

uint16_t len
 
uint16_t tot
 
unsigned char tmp
 
unsigned char flg
 

Detailed Description

Main string type used by the library

Most of the time, the user interacts only with the "string". Internally, however, this is how strings are represented.

The value of the string itself follows after this small header. That is the memory address returned by a function.

IMPORTANT DISAMBIGUATION:

string_real.len is a length! string_real.tot is a size!

Field Documentation

unsigned char _string_real::flg

flag telling that this is a string

uint16_t _string_real::len

length of the string

unsigned char _string_real::tmp

flag telling if this string should be free'd after use

uint16_t _string_real::tot

total amount of memory allocated to the string


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