fixup hello

This commit is contained in:
K. Lange 2018-02-25 19:07:56 +09:00 committed by Kevin Lange
parent 963a0fca97
commit d2f1449a46
2 changed files with 3 additions and 13 deletions

15
hello.c
View File

@ -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;
}

View File

@ -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);