memset
memset used for memory allocation?
i was looking at this example at msdn: http://msdn.microsoft.com/en-us/library/ms894209.aspx DWORD dwResult;[详细]
2023-03-06 19:49 分类:问答Why memset() does not work properly when placed inside a loop body?
Yesterday I programmed a small piece code in C++ which contains a loop and an array. In the program I need to reset the array every time the loop starts over. However, if I use[详细]
2023-02-27 00:15 分类:问答Is -1 a valid pointer address [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: Can a pointer (address) ever be negative?[详细]
2023-02-17 22:44 分类:问答Can you please Explain the output and point out mistake
char FramebufferUpdateRequest[11]; uint16_t val; memset(FramebufferUpdateRequest, 0, 10); FramebufferUpdateRequest[0] = 3;[详细]
2023-02-16 12:02 分类:问答how to use memset for double dimentional array?
I have a Double dim. array: alarm_1_active_buffer[MAX_NUM_ALARMS][MAX_ALARM_STRING_SIZE]; I want to clear the buffer before filling it.[详细]
2023-02-12 15:53 分类:问答String manipulation in Linux kernel module
I am having a hard time in manipulating strings while writing module for linux. My problem is that I have a int Array[10] with different values in it. I need to produce a string to be able send to the[详细]
2023-02-04 05:24 分类:问答c: pointers - how to increase every 2nd byte by X
I have a pointer that\'s开发者_StackOverflow holding 100 bytes of data. i would like to add 5 to every 2nd byte.[详细]
2023-02-01 04:42 分类:问答first parameter in memset passing array or pointer
gcc 4.4.4 c89 Pointers are not the same as arrays. But arrays can decay into pointers. I was just using memset which first parameter is a pointer. I would like to initialize my structure array.[详细]
2023-01-11 22:17 分类:问答How to memset() memory to a certain pattern instead of a single byte?
I need to write a repeating pattern to memory (e.g. 0x11223344), so that the whole memory looks like (in hex):[详细]
2023-01-08 21:09 分类:问答"Use of uninitialised value" despite of memset
I allocate a 2d array and use memset to fill it with zeros. #include<stdio.h> #include<string.h>[详细]
2023-01-03 14:54 分类:问答