Robot
Move a little robot.
string Struct Reference

A dynamically allocated string structure. More...

#include <string.h>

Data Fields

char * start
 
size_t available_size
 
size_t used_size
 

Detailed Description

A dynamically allocated string structure.

This structure represents a resizable string buffer, tracking both the allocated and used sizes.

  • start: pointer to the beginning of the character buffer.
  • available_size: total allocated size in bytes, including already written characters and the final '\0'.
  • used_size: number of bytes currently used in the buffer, including the final '\0'.

Field Documentation

◆ available_size

size_t string::available_size

◆ start

char* string::start

◆ used_size

size_t string::used_size

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