9、
#include <stdio.h> char *s_gets(char *st, int n); int main(void) { char st1[100]; s_gets(st1, 100); puts(st1); return 0; } char *s_gets(char *st, int n) { char *ret_val; ret_val = fgets(st, n, stdin); if(ret_val) { while(*st != ' ' && *st != '
9、
#include <stdio.h> char *s_gets(char *st, int n); int main(void) { char st1[100]; s_gets(st1, 100); puts(st1); return 0; } char *s_gets(char *st, int n) { char *ret_val; ret_val = fgets(st, n, stdin); if(ret_val) { while(*st != ' ' && *st != '