In C, what is the best practice for handling errors in your own functions?

前端 未结 0 1125
再見小時候
再見小時候 2021-02-07 08:51

Say I call the function openFile in my main function:

int main() {
    FILE *fptr;
    char *file_name = "myfile.txt";
    fptr = openFile(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题