Answers for "memset in c syntax"

C
1

c memset

#include <string.h> // memset(void *, char, size_t)

int main(void) {
  char buff[1024];
  memset(buff, '\0', 1024);
  /*
  Initialize the first 1024 bytes of buff with '\0'
  */
  return 0;
}
Posted by: Guest on April-20-2022

Code answers related to "C"

Browse Popular Code Answers by Language