fclose
why does fclose not set file pointer to NULL?
I was writing a RAII wrapper for FILE *. I noticed that when the FILE * is deleted after close in the destructor it leads to undefined behavior (seg. fault or errors somewhere else). I assumed that th[详细]
2023-04-01 04:52 分类:问答Seg Fault on fopen/fclose
I have a program that is creating multiple files. There is a function for each file being created. Within each function is the exact same code to create the file name, open/create the file for writing[详细]
2023-03-12 07:39 分类:问答Does re-use of file pointers cause a memory leak?
It\'s been several years since 开发者_StackOverflow社区I\'ve dealt with C++, so bear with me... I have a memory leak in my program which causes a run-time error.Could this be causing the error?[详细]
2023-03-10 12:22 分类:问答why does PHP fopen + fwrite double document?
I am running PHP Version 5.3.4 with Apache/2.2.17 on Windows 7 Ultimate 32bit (IIS disabled). I been looking at the fopen modes and am well aware of what mode does what, but i can\'t wrap my finger ar[详细]
2023-03-02 05:50 分类:问答ipad app exited abnormally with signal 11: Segmentation fault: 11
My app exited abnormally with signal 11.I don\'t know what that means.There is no crash log and the debugger shows no error.The app is just gone.[详细]
2023-03-01 05:11 分类:问答How to remove a file in C program?
How do I close a file and remove it? I have the following code: FIL开发者_JAVA百科E *filePtr = fopen(\"fileName\", \"w\");[详细]
2023-02-28 21:56 分类:问答Rewriting some code using fsockopen to use curl instead
My host doesn\'t allow fsockopen, but it does allow curl. I\'m happy using curl fro开发者_C百科m the cli, but haven\'t had to use it with PHP much. How do I write this using curl instead?[详细]
2023-02-07 19:21 分类:问答close file with fclose() but file still in use
I\'ve got a problem with deleting/overwriting a file using my program which is also being used(read) by my program. The problem seems to be that because of the fact my program is reading data from the[详细]
2023-02-04 19:28 分类:问答What can cause fwrite to hang?
My code is hanging fwrite with the following stack: libc.so.6.1::___lll_lock_wait libc.so.6.1::fwrite This seems to be happening in solaris.[详细]
2023-01-15 10:11 分类:问答Cannot use fclose on output stream, input stream is fine
Whenever I run my program with fclose(outputFile);at the very end, I get an error. glibc detected...corrupted double-linked list[详细]
2022-12-29 21:48 分类:问答