The meaning of this program is not to pay attention, given only as an example. Only interested in writing to the file through the function
If something is wrong, please indicate shortcomings.
The meaning of this program is not to pay attention, given only as an example. Only interested in writing to the file through the function
If something is wrong, please indicate shortcomings.
Source: https://ru.stackoverflow.com/questions/268567/
All Articles
FILE *
parameter so that it writes something to the transferred file? Yes you can. Shortcomings. At least: 1. It is necessary to check whether the file is successfully opened. 2. At normal completion, end the programreturn 0;
(orexit(0);
). - avphead()
function, just in this example I decided to omit them (in order to leave only the essence of the question). Yes, thanks, now your thought has become clear to me. ------------------- (I did not think that there is a restriction on the number of comments ..) - froxxendsg