fprintf函数返回值
时间: 2023-08-15 08:14:55 浏览: 227
fprintf函数的返回值是输出的字符数。当函数执行成功时,返回输出的字符数;当发生错误时,返回一个负值。在Linux/UNIX操作系统中,成功返回0,失败返回-1,并置errno值。\[1\]\[2\]
#### 引用[.reference_title]
- *1* [关于fprintf](https://blog.csdn.net/f413933206/article/details/5966770)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* *3* [函数 fprintf() 使用说明](https://blog.csdn.net/TsingHua666/article/details/80504094)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文