memcpy
memcpy() vs memmove()
I am trying to understand the difference between memcpy() and memmove(), and I have read the text that memcpy() doesn\'t take care of the overlapping source and destination whereas memmove() does.[详细]
2023-01-29 20:08 分类:问答How to get the address of a variable stated in C Macro?
I a开发者_开发知识库m new to C and am trying some macro statements. I have a line like this: #define write_data(src, TYPE, VALUE ) (write_implement(src, sizeof(TYPE), &(VALUE)))[详细]
2023-01-25 10:50 分类:问答C++ Packet Builder with Templates
PacketBuilder is a little Class which allow to write into a char* array. The Append Functions: template <class T>[详细]
2023-01-24 08:57 分类:问答C++ struct array copy
I want to copy elements of a struct array to another by using memcpy. I believe this is开发者_开发百科 miserably causing my program to fail for some reason. Also how can I free the memory in the end ?[详细]
2023-01-19 22:23 分类:问答Strange behavior of memcpy/memmove
I have the problem that memcpy/memmove change the pointer of a struct FOO foo, which is neither src nor destination of the function. Here are the gdb outputs:[详细]
2023-01-17 13:58 分类:问答What are real significant cases when memcpy() is faster than memmove()?
The key difference b开发者_如何学编程etween memcpy() and memmove() is that memmove() will work fine when source and destination overlap. When buffers surely don\'t overlap memcpy() is preferable since[详细]
2023-01-16 11:22 分类:问答Generic editable functions in C using void*
I fall in some problem. I need to write some function like memcpy(void*, const void*), which its signature should be:[详细]
2023-01-16 06:03 分类:问答MIPS memcpy issue (i think)
I have some software that I have working on a redhat system with icc and it is working fine. When I ported the code to an IRIX system running with MIPS then I get some calculations that come out as \"[详细]
2023-01-12 02:23 分类:问答memcpy adds ff ff ff to the beginning of a byte
I have an array that is like this: unsigned char array[] = {\'\\xc0\', \'\\x3f\', \'\\x0e\', \'\\x54\', \'\\xe5\', \'\\x20\'};[详细]
2023-01-11 21:48 分类:问答memcpy seems to be stuck
I am trying to use a memcpy for a size of 200K, and it stucks!!开发者_如何学Go! Both destb and source are allocated.[详细]
2023-01-09 13:58 分类:问答