Compare commits

...

2 Commits

Author SHA1 Message Date
Jackson Novak
cb5e53ca05
Merge fa0e566438 into eb46688b82 2025-04-09 15:40:39 -05:00
Oglo12
fa0e566438 [README] Fix Clay_String definition in README.md file.
Added `.isStaticallyAllocated` as a field,
and changed `int length` to `int32_t length` to
reflect the actual code.
2025-04-08 15:56:42 -05:00

View File

@ -1787,7 +1787,8 @@ Note: when using the debug tools, their internal colors are represented as 0-255
```C
typedef struct {
int length;
bool isStaticallyAllocated;
int32_t length;
const char *chars;
} Clay_String;
```
@ -1796,7 +1797,14 @@ typedef struct {
**Fields**
**`.length`** - `int`
**`.isStaticallyAllocated`** - `bool`
Whether or not the string is statically allocated, or in other words, whether
or not it lives for the entire lifetime of the program.
---
**`.length`** - `int32_t`
The number of characters in the string, _not including an optional null terminator._