summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 19:04:12 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 19:04:12 +0100
commit7b75ac0962be8ed19a1eca638f600ebee337a18a (patch)
tree48374002b23e7b9f19f1d6fcd3fa57efac5fafd9
parent5d37541d63b5c1454dd424eb6f0bc4465629dade (diff)
downloadnonstd-7b75ac0962be8ed19a1eca638f600ebee337a18a.tar.gz
Cleanup and fixes
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 0fd1aa4..b509377 100644
--- a/README.md
+++ b/README.md
@@ -103,7 +103,7 @@ array_free(numbers);
Ideal for parsing and passing strings around without allocation.
```c
-const char* raw = "Hello World";
+const char *raw = "Hello World";
stringv sv = sv_from_cstr(raw);
stringv word = sv_slice(sv, 0, 5); // "Hello" (no allocation)
@@ -136,8 +136,8 @@ Efficiently allocate many small objects and free them all at once.
Arena arena = arena_make();
// Allocations are fast and contiguous within blocks
-void* obj1 = arena_alloc(&arena, 64);
-void* obj2 = arena_alloc(&arena, 128);
+void *obj1 = arena_alloc(&arena, 64);
+void *obj2 = arena_alloc(&arena, 128);
// growth is automatic if a block is full
@@ -151,7 +151,7 @@ Read or write files with a single functional call.
```c
size_t size;
-char* content = read_entire_file("data.txt", &size);
+char *content = read_entire_file("data.txt", &size);
if (content) {
printf("Read %zu bytes:\n%s\n", size, content);