Linux, programming, computers and life

July 31, 2008

memset64, anyone?

Filed under: programming, c++

I wonder why memset is the only mean we have in libc in order to fill memory. We are limited to filling the memory with certain char. What if i want to use longer pattern? Is there anything like memset64? Generally, i’d like to fill the buffer with pattern which is 4 or 8 bytes long. I’m pretty sure, that’s the way memset is implemented anyway, for performance.
Maybe i’m missing something, but i was unable to find anything like this in the libc.

Get free blog up and running in minutes with Blogsome
Theme designed by Gary Rogers