Back to index

cell-binutils  2.17cvs20070401
memset.c File Reference
#include <ansidecl.h>
#include <stddef.h>

Go to the source code of this file.


PTR memset (PTR dest, register int val, register size_t len)

Function Documentation

PTR memset ( PTR  dest,
register int  val,
register size_t  len 

Definition at line 19 of file memset.c.

  register unsigned char *ptr = (unsigned char*)dest;
  while (len-- > 0)
    *ptr++ = val;
  return dest;