diff options
| author | Syndamia <kamen@syndamia.com> | 2026-04-21 19:48:36 +0300 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-04-21 19:48:36 +0300 |
| commit | 3b543388b988702c984d80a35e97ea134d9ed481 (patch) | |
| tree | 78e9446efd4e9703f4fa8cb56602398b5dd763bd /main.c | |
| parent | 65452e3680e411da643bd03107637c2d9ef01312 (diff) | |
| download | foollib-3b543388b988702c984d80a35e97ea134d9ed481.tar foollib-3b543388b988702c984d80a35e97ea134d9ed481.tar.gz foollib-3b543388b988702c984d80a35e97ea134d9ed481.zip | |
feat!: Function rename and standardize
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 29 |
1 files changed, 0 insertions, 29 deletions
@@ -1,29 +0,0 @@ -#include "Array.h" -#include "BumpAlloc.h" -#include "GlobalArena.h" -#include "String.h" -#include <stdio.h> - -int -main() { - g_arena = Bcreate(KiB(4)); - - int *nums = Array_Gnew(sizeof(int), 8); - for (int i = 10; i < 20; ++i) { - Array_push(nums, &i); - } - - printf("%lu/%lu |", Array_count(nums), Array_length(nums)); - for (int i = 0; i < Array_count(nums); ++i) - printf(" %d", nums[i]); - printf("\n"); - - String s = String_Gconcat("Hello", " ", "World", "!", NULL); - printf("%s\n", s); - - String s1 = String_Gprintf("%s #%d\n", s, 5); - printf("%s\n", s1); - - Bdestroy(g_arena); - return 0; -} |
