Changeset b27a97b in mainline for init/init.c


Ignore:
Timestamp:
2006-05-31T15:41:19Z (19 years ago)
Author:
Josef Cejka <malyzelenyhnus@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c0e674a
Parents:
440cff5
Message:

Support for reading from stdin.
Getchar() implemented.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • init/init.c

    r440cff5 rb27a97b  
    416416}
    417417
     418static void test_console(void)
     419{
     420        int c;
     421
     422        while ((c = getchar()) != EOF)
     423                putchar(c);
     424}
     425
     426
    418427int main(int argc, char *argv[])
    419428{
     
    423432//      version_print();
    424433
     434        printf("Hello\nThis is Init\n");
     435       
    425436//      test_printf();
    426437//      test_printf2();
     
    437448//      test_async_kbd();
    438449//      test_fb();
    439 
    440         printf("Hello\nThis is Init\n\nBye.");
    441        
     450        test_console();
     451
     452        printf("\nBye.\n");
    442453
    443454/*     
Note: See TracChangeset for help on using the changeset viewer.