18 lines
327 B
C
18 lines
327 B
C
/**
|
|
* Contains the definition of the String structure, which is a simple representation of a string in C.
|
|
*/
|
|
#ifndef STR_H
|
|
#define STR_H
|
|
|
|
#include <stddef.h>
|
|
|
|
/**
|
|
* A simple string structure that holds a pointer to the character data and its length.
|
|
*/
|
|
typedef struct {
|
|
char* data;
|
|
size_t length;
|
|
} String;
|
|
|
|
#endif
|