Example of C language memset

Example of C language memset

Syntax:

memset(void *, char, size_t)
Sourc‮.www:e‬lautturi.com
/*
memset function with examples in c language
*/

#include <string.h>

int main(void) {
  char buff[1024];
  /*
  The first 1024 bytes of initialization buff with \0
  */
  memset(buff, '\0', 1024);
  
  return 0;
}
Created Time:2017-08-29 09:33:41  Author:lautturi