metalsvm/newlib/examples/hello.c
2010-08-17 21:20:03 +00:00

18 lines
282 B
C

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#undef errno
extern int errno;
int main(int argc, char** argv)
{
char str[] = "Hello World!!!\n";
write(1, str, strlen(str));
printf("Hello from printf!!!\n");
return errno;
}