VMS Help  —  CRTL  memset
    Sets a specified number of bytes in a given object to a given
    value.

    Format

      #include  <string.h>

      void *memset  (void *s, int value, size_t size);

1  –  Function Variants

    The memset function has variants named _memset32 and _memset64
    for use with 32-bit and 64-bit pointer sizes, respectively.

2  –  Arguments

 s

    An array pointer.

 value

    The value to be placed in s.

 size

    The number of bytes to be placed in s.

3  –  Description

    The memset function copies value (converted to an unsigned char)
    into each of the first size characters of the object pointed to
    by s.

    This function returns s. It does not check for the overflow of
    the receiving memory area pointed to by s.

4  –  Return Value

    x                  The value of s.
Close Help