Is there memset() that accepts integers larger than char?

前端 未结 8 603
时光说笑
时光说笑 2020-12-05 00:25

Is there a version of memset() which sets a value that is larger than 1 byte (char)? For example, let\'s say we have a memset32() function, so using it we can do the followi

8条回答
  •  眼角桃花
    2020-12-05 00:41

    wmemset(3) is the wide (16-bit) version of memset. I think that's the closest you're going to get in C, without a loop.

提交回复
热议问题