diff --git a/README.md b/README.md index 0fd1aa409302674ee7285d2bf342521789894f3a..b50937708e18643161bf31a3075d8043a61b9f3d 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ **String View (`stringv`)**: 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 @@ ```c 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);