memcpy
Using memcpy to copy a structure into the heap
I am 开发者_开发百科trying to put a structure named \"Holder\" into the heap by using the following code, but I get a segmentation fault when I try to use memcpy:[详细]
2023-02-28 04:41 分类:问答Transferring values from void pointer
Can someone tell me whats wrong with this code? base is a void pointer to a bunch of floats i is a value >1[详细]
2023-02-27 15:47 分类:问答shared object filter is causing crash of application on Solaris 10
I have compiled my application on Solaris 10 which is using Qt 4.7.2. ldd of executable shows following:[详细]
2023-02-27 10:18 分类:问答What should replace "memcpy" inside OpenCL kernels?
The OpenCL language, which extends C99, does not provide the memcpy fu开发者_如何学JAVAnction. What should be used instead?As far as I know, there is nothing like that defined in OpenCL. OpenCL does n[详细]
2023-02-25 21:34 分类:问答A curious string copy function in C
When I was reading the nginx code, I have seen this function : #define ngx_cpymem(dst, src, n)(((u_char *) memcpy(dst, src, n)) + (n))[详细]
2023-02-25 09:29 分类:问答memcpy and pointers
I am confuse on how to read the pointers copied in an array using memcpy. Following is what I have tried, but does not work.[详细]
2023-02-21 22:34 分类:问答Swap pointers instead of memcpy
EDIT: I\'m sorry for my mistakes in my code snippets, now I see both outputs were same. Below is an edited version.[详细]
2023-02-20 16:22 分类:问答memcpy vs assignment in C -- should be memmove?
As pointed out in an answer to this question, the compiler (in this case gcc-4.1.2, yes it\'s old, no I can\'t change it) can replace struct assignments with memcpy where it thinks it is appropriate.[详细]
2023-02-19 03:06 分类:问答Is the memcpy() function reentrant?
I call some C++ functions inside a signal hand开发者_开发知识库ler and my program is terminated by segmentation fault.[详细]
2023-02-17 14:09 分类:问答memcpy copying partly over itself
Is this ok? char buf[] = { 0, 1, 2 }; memcpy(b开发者_Python百科uf, buf + 1, 2); Does having a bigger datatype make any difference? I know I could use memmove(), but I\'m just curious.The effects of[详细]
2023-02-17 09:55 分类:问答