wwc-15172310230 237e95c6dd
调整user下libs的libc目录结构 (#103)
* 调整user下libs的libc目录结构

* 修正.gitignore文件的问题

* 修复无法编译的问题

Co-authored-by: longjin <longjin@RinGoTek.cn>
2022-12-11 22:22:10 +08:00

46 lines
1.6 KiB
C

#include <libc/src/math.h>
#include <libc/src/stdio.h>
#include <libc/src/stdlib.h>
#include <libc/src/time.h>
#include <libc/src/unistd.h>
void print_ascii_logo()
{
printf(" ____ ___ ____ \n");
printf("| _ \\ _ __ __ _ __ _ ___ _ __ / _ \\ / ___| \n");
printf("| | | || '__| / _` | / _` | / _ \\ | '_ \\ | | | |\\___ \\ \n");
printf("| |_| || | | (_| || (_| || (_) || | | || |_| | ___) |\n");
printf("|____/ |_| \\__,_| \\__, | \\___/ |_| |_| \\___/ |____/ \n");
printf(" |___/ \n");
}
void print_copyright()
{
printf(" DragonOS - An opensource operating system.\n");
printf(" Copyright: fslongjin & DragonOS Community. 2022, All rights reserved.\n");
printf(" Version: ");
put_string("V0.1.1 - 20221127\n", COLOR_GREEN, COLOR_BLACK);
printf(" You can visit the project via:\n");
printf("\n");
put_string(" Official Website: https://DragonOS.org\n", COLOR_INDIGO, COLOR_BLACK);
put_string(" GitHub: https://github.com/fslongjin/DragonOS\n", COLOR_ORANGE, COLOR_BLACK);
printf("\n");
printf(" Maintainer: longjin <longjin@RinGoTek.cn>\n");
printf(" Get contact with the community: <contact@DragonOS.org>\n");
printf("\n");
printf(" If you find any problems during use, please visit:\n");
put_string(" https://bbs.DragonOS.org\n", COLOR_ORANGE, COLOR_BLACK);
printf("\n");
}
int main()
{
// printf("Hello World!\n");
print_ascii_logo();
print_copyright();
// exit(0);
// while (1)
// ;
return 0;
}