123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #include <libc/unistd.h>
- #include <libc/stdio.h>
- #include <libc/fcntl.h>
- #include <libc/stdlib.h>
- int main()
- {
- char string[] = "333.txt";
- uint8_t buf[128] = {0};
- char tips_str[] = "The first application 'init.bin' started successfully!\n";
- put_string(tips_str, COLOR_GREEN, COLOR_BLACK);
- printf("test printf: %s size: %d\n", string, sizeof(string));
- int fd = open(string, 0);
- printf("fd=%d\n", fd);
-
- char* p = malloc(100);
- printf("p=%lld\n", (uint64_t)p);
-
-
- while (1)
- ;
- }
|