fixup hello
This commit is contained in:
parent
963a0fca97
commit
d2f1449a46
15
hello.c
15
hello.c
@ -1,17 +1,6 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#include "lib/graphics.h"
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char * argv[]) {
|
||||
gfx_context_t * gfx = init_graphics_fullscreen();
|
||||
draw_fill(gfx, rgb(0xFF, 0x44, 0x22));
|
||||
|
||||
char * args[] = {
|
||||
"/bin/sh",
|
||||
NULL,
|
||||
};
|
||||
|
||||
execvp("/bin/sh",args);
|
||||
|
||||
puts("Hello, world.");
|
||||
return 0;
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ extern int sprintf(char *buf, const char *fmt, ...);
|
||||
extern int fprintf(FILE *stream, char *fmt, ...);
|
||||
extern int printf(char *fmt, ...);
|
||||
|
||||
extern int puts(const char *s);
|
||||
extern int fputs(const char *s, FILE *stream);
|
||||
extern int fputc(int c, FILE *stream);
|
||||
extern int fgetc(FILE *stream);
|
||||
|
Loading…
Reference in New Issue
Block a user