Memory set : Memory Set « Memory « C / ANSI-C






Memory set


#include <stdio.h>
#include <string.h>

int main(void)
{
  char *p;

  p = memchr("this is a test", ' ', 14);
  printf(p);

  return 0;
}

           
       








Related examples in the same category

1. Fill buffer with specified character: how to use memset