📅  最后修改于: 2022-03-11 14:48:15.741000             🧑  作者: Mango
// C program to illustrate
// fgets()
#include
#define MAX 15
int main()
{
char buf[MAX];
fgets(buf, MAX, stdin);
printf("string is: %s\n", buf);
return 0;
}