如果系统调用函数失败,我们通常使用perror来输出错误消息.我想使用fprintf输出perror字符串.我该怎么做这样的事情:
fprintf(stderr, perror output string here);
c errno stderr
c ×1
errno ×1
stderr ×1