prog: test: simple function call test

This commit is contained in:
2026-03-21 10:54:21 +00:00
parent eaf5e02ad4
commit ed138d581e

View File

@@ -1,3 +1,5 @@
#include <mango/log.h>
#include <stdio.h>
#include <string.h>
const char *s
@@ -152,6 +154,14 @@ const char *s
int main(void)
{
const char *s = "Hello, world!";
return strlen(s);
kern_logf("Test 1");
kern_logf("Test 2");
kern_logf("Test 3");
const char *text = "Hello, world!";
char s2[32];
snprintf(s2, sizeof s2, "%s", text);
size_t v = strlen(s);
kern_logf("%s, %zu", s2, v);
return 0;
}