cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Is there a function like memset that can
Is there a function like memset that can handle larger types for Value?
Feb 10, 2010 at 6:11am UTC
AlwaysLearning
(116)
Memset Value only handles ints, but I am looking for something that can write something like DWORDS to memory.
thanks in advance.
Feb 10, 2010 at 6:27am UTC
Disch
(13742)
std::fill in <algorithm>
http://cplusplus.com/reference/algorithm/fill/
1
2
3
4
DWORD buffer[100];
// fill buffer with 0xDEADBEEF
std::fill(buffer, buffer + 100, 0xDEADBEEF);
Feb 10, 2010 at 6:30am UTC
AlwaysLearning
(116)
Thanks!
Topic archived. No new replies allowed.