BigOS/user/testchn.c
2023-01-15 16:10:09 +08:00

31 lines
1.3 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "type.h"
#include "const.h"
#include "protect.h"
#include "string.h"
#include "proc.h"
#include "global.h"
#include "proto.h"
#include "stdio.h"
int main(int arg, char *argv[])
{
int stdin = open("dev_tty0", O_RDWR);
int stdout = open("dev_tty0", O_RDWR);
int stderr = open("dev_tty0", O_RDWR);
char testtext[] = "\n 你们有一个好,全世界跑到什么地方,你们比其他的西方记者啊跑得还快。但是呢问来问去的问题啊,都 too simplesometimes naive懂了没啊\n";
char testtext2[] = "\n 我今天是作为一个长者跟你们讲这个。我不是新闻工作者,但是我见得太多了,我有这个必要告诉你们一点,人生的经验。\n\n I'm angry我跟你们讲你们这样子啊是不行的\n";
char testtext3[] = "\n 那么人呐就都不知道,自己就不可以预料。你一个人的命运啊,当然要靠自我奋斗,但是也要考虑到历史的行程,我绝对不知道,我作为一个上海市委书记怎么把我选到北京去了,所以邓小平同志跟我讲话,说“中央都决定啦,你来当总书记”,我说另请高明吧。我实在我也不是谦虚,我一个上海市委书记怎么到北京来了呢?但是呢,小平同志讲“大家已经研究决定了”,所以后来我就念了两首诗,叫“苟利国家生死以,岂因祸福避趋之”。\n";
char testtext4[] = "\n 苟利国家生死以,\n 岂因祸福避趋之。\n";
printf(testtext);
printf(testtext2);
printf(testtext3);
for (int i = 0; i < 5; ++ i) {
printf(testtext4);
}
while (1)
;
return 0;
}