memset() function | C Programming Tutorial

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I have been searching to understand memset(), and your video is the best one

mohammadahmedragab
Автор

Wow memset looks so trivial with such a great explanation. Im learning SDL and was a bit confused on how the tutorial was setting the screen pixels. This clears it up flawlessly, the screen surface is the memory address 'pitch'(why didnt they just call that what it is, PixelsPerRow lol)was the length of each row(in pixels) then "BytesPerPixel" is the offset to set the next pixels rgb values😅

Chevifier
Автор

u r my hero, like for thx from Germany <3

karimalassdi
Автор

thanks a lot, you wrote the int main, can you write the function itself without the main ?

memeaunt
Автор

Thankyou sir...
It would be nice if you can create a video about bzero :)

pourtoujours
Автор

thank you for this helper video, just wanna ask if memset takes only characters as values, will it works with integers value?

abdessamedaitlhaj
Автор

great explanation as always
i think the function works like this :

void* stdmemset(void* object, int ch, size_t count){
unsigned char* castedobject = (unsigned char*) object ;
unsigned char castedch = (unsigned char) ch ;
while(castedobject != nullptr && count >0){
*castedobject = castedch ;
++castedobject ;
--count ;
}
return object ;
}

justcurious
Автор

Why the video is coming with blank, im not able to see anything

ajayakkirala
Автор

can you create a video about memcmp()?

Ori_Jr
Автор

Why use size of. *10, instead of just 10 🤔

wizardatmath