I am trying to understand the Python \"ctypes\" module.I have put together a trivial example that -- ideally -- wraps the statvfs() function call.The code looks like this:
So, I have some function returning a pointer, or NULL on error. Now I\'d like to add another possible value for a different error/condition. I heard this mentioned in some other answer before - using
I am trying to do a pretty simple thing - it is reading a file and then turning it into a char** splitting it into lines. However when I return a struct containing the char** and size i get Segmentati
when i compiled(c++ program) in linux i am getting following error pls help me glibc detected *** ./a.out: free(): invalid pointer:0x0804878d ***
I wrote a variadic C function which mission is to allocate the needed memory for a buffer, and then sprintf the args given to this function in that buffer. But I\'m seeing a strange behavior with it.
my first question on Stackoverflow. Let me start with a bit of code.It\'s a bit repetitive so I\'m going to cut out the parts I repeat for different arrays (feel free to ask for the o开发者_StackOver
In our product we use a malloc implementation that relies exclusively on mmap for memory allocation.We also do a fair use of allocaing.We\'ve just encountered a problem where m开发者_如何转开发map wil
I havethe following function but sometimes it fails on the malloc function call and I don\'t know the reason,I thought that it may be due to lack of heap size but I have monitored the heap and I unde
I\'m working on a multithreaded (pthread based) project. The project uses a library that I\'m writing.
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing