[USER] Temporary write syscall

This commit is contained in:
2016-12-11 19:50:01 +01:00
parent 1693baaf6b
commit 19df873615
7 changed files with 76 additions and 0 deletions

View File

@@ -1,9 +1,18 @@
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
(void) argc;
(void) argv;
printf("Hello, world!\n");
printf("Some numbers:%d\n", 12345);
printf("And hex:%#x\n", 0xabcdef);
printf("And a string:%s\n", "Hello!");
printf("Arguments passed to init:\n");
for(int i=0; i < argc; i++)
printf("%d: %s\n", i, argv[i]);
for(;;);
return 0;
}