Source code is
old = fopen(oldnam, OPEN_R); if (old == NULL) return (-1); new = fopen(newnam, OPEN_W); if (new == NULL) return (-1);
Suggest add missing call to fclose( old) in final if.
Log in to post a comment.