diff --git a/newlib/examples/hello.c b/newlib/examples/hello.c index c05392e..439954b 100644 --- a/newlib/examples/hello.c +++ b/newlib/examples/hello.c @@ -29,55 +29,19 @@ #include #include #include -#include #include -#include - -/*file descriptor init*/ -#define NR_OPEN 10 -#define FS_INIT { [0 ... NR_OPEN-1] = {NULL, 0, 0} } - -#define TESTSTR "hello in new file '/bin/test.txt'" +#undef errno +extern int errno; int main(int argc, char** argv) { - int i, testfile; - char* teststr; - DIR* testdir; - dirent_t* testdirent; + int i; + printf("Hello World!!!\n"); for(i=0; environ[i]; i++) printf("environ[%d] = %s\n", i, environ[i]); for(i=0; id_name); - closedir(testdir); - return errno; }