【发布时间】:2014-09-19 01:48:14
【问题描述】:
我有这个
#include<stdio.h>
#include<stdlib.h>
int main() {
int a = getw(stdin);
if(ferror(stdin)) {
printf("error occurred\n");
exit(1);
}
printf("%u\n", a);
}
我得到:
$ ./readstdin
9876
909588537
你能帮忙解释一下输出吗?
我的机器: Linux abc-ubuntu 3.2.0-65-generic #98-Ubuntu SMP Wed Jun 11 20:27:07 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
【问题讨论】:
-
getw定义在哪里?
标签: c