5 Struct N_STR
gullradriel edited this page 2026-10-09 00:55:18 +02:00

N_STR

Module: STRINGS: replacement to char *strings with dynamic resizing and boundary checking

A box including a string and his lenght.

#include "n_str.h"

Public Attributes

Name
size_t written
number of meaningful bytes in data, excluding the null terminator; the size including the null terminator is [written]() + 1.
size_t length
total allocation (in bytes) of the data buffer, padding included
char * data
the string

Public Attributes Documentation

variable written

size_t written;

number of meaningful bytes in data, excluding the null terminator; the size including the null terminator is [written]() + 1.

variable length

size_t length;

total allocation (in bytes) of the data buffer, padding included

variable data

char * data;

the string