metalsvm/newlib/examples/hello.c
stefan a6a9617775 - add the libc "newlib" and their support into MetalSVM
- programs could be load as module by the bootloader Grub



git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@95 315a16e6-25f9-4109-90ae-ca3045a26c18
2010-08-17 09:59:29 +00:00

16 lines
242 B
C

#include <stdlib.h>
#include <stdio.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;
}