char * s_gets(char *st, int n){
char * ret_val;
int i = 0;
ret_val = fgets(st, n, stdin);
if (ret_val){
while (st[i] != '\0' && st[i] != '\n')
i++;
if (st[i] == '\n')
st[i] = '\0';
else
while (getchar() != '\n')
continue;
}
return ret_val;
}
皈依舞
慕尼黑5688855
求大神解释解释,刚刚接触这个语言
看了大家关于sort面后方法函数的解释,仍不能理解,给自己留个问题回头再看。
C语言中指针的理解使用
print a