prog: test: simple function call test
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user