(root)/
gawk-5.2.2/
missing_d/
memset.c
       1  /*
       2   * memset --- initialize memory
       3   *
       4   * We supply this routine for those systems that aren't standard yet.
       5   */
       6  
       7  void *
       8  memset(dest, val, l)
       9  void *dest;
      10  int val;
      11  size_t l;
      12  {
      13  	char *ret = dest;
      14  	char *d = dest;
      15  
      16  	while (l--)
      17  		*d++ = val;
      18  
      19  	return ((void *) ret);
      20  }