memset
What is the easiest way to set the value of an entire array?
My current project requires me to fill an array based upon some other values. I know there\'s the shortcut:[详细]
2023-01-03 10:08 分类:问答is memset(ary,0,length) a portable way of inputting zero in double array [duplicate]
This question already has answers here: Closed 12 years ago. Possible Duplicate: What is faster/prefered memset or for loop to zero out an array of doubles[详细]
2023-01-01 12:49 分类:问答How to use VC++ intrinsic functions w/o run-time library
I\'m involved in one of those challenges where you try to produce the smallest possible binary, so I\'m building my program without the C or C++ run-time libraries (RTL).I don\'t link to the DLL versi[详细]
2023-01-01 07:53 分类:问答memset on array of structures in C++
I have another memset question. It appears as if the code I am editing may have some issues (or it\'s not done the same way in different files)[详细]
2022-12-30 01:26 分类:问答MemSet & MemCopy
I\'m writing a memory allocator, and I need a way to store an integer inside of a chunk of memory.This integer will represent the size of the block so I can navigate to the end given the pointer to th[详细]
2022-12-25 13:30 分类:问答C++ Memory Allocation & Linked List Implementation
I\'m writing software to simulate the \"first-fit\" memory allocation schema. Basically, I allocate a large X megabyte chunk of memory and subdivide it into blocks when chunks are requested according[详细]
2022-12-24 23:55 分类:问答Fastest way to zero out a 2d array in C?
I want to repeatedly zero a large 2d array in C. This is what I do at the moment: // Array of size n * m, where n may not equal m[详细]
2022-12-24 07:21 分类:问答Exception in Memset
When try to do a memset it gives the following exception \"Unhandled exception at 0x1023af7d (PxSmartInterface.dll) in SendOutDllTestExe.exe: 0xC0000005: Access violation writing location 0x40e3a80e.[详细]
2022-12-23 04:42 分类:问答Problem with memset after an instance of a user defined class is created and a file is opened
I\'m having a weird problem with memset, that was something to do with a class I\'m creating before it and a file I\'m opening in the constructor. The class I\'m working with normally reads in an arra[详细]
2022-12-22 20:52 分类:问答C++ equivalent for memset on char*
开发者_如何学运维I have this code char * oldname = new char[strlen(name) + 1]; memcpy(oldname,name,strlen(name) + 1);[详细]
2022-12-18 10:37 分类:问答