Tried and true simple file copying code in C?

前端 未结 7 1174
醉梦人生
醉梦人生 2020-12-03 09:09

This looks like a simple question, but I didn\'t find anything similar here.

Since there is no file copy function in C, we have to implement file copying ourselves,

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 09:14

    Here is a very easy and clear example: Copy a file. Since it is written in ANSI-C without any particular function calls I think this one would be pretty much portable.

提交回复
热议问题