BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kmemset - initialize bytes in dest to the character value 'c'

LIBRARY CALL

kaddr kmemset(
   kaddr  dest, 
   int    c,
   size_t num)

INPUT

OUTPUT

RETURN VALUE

returns dest on success, NULL upon failure

DESCRIPTION

This function is the same as the system call memset(). Except kmemset() will make sure that the dest and the the number of bytes to be initialized are greater than 0.

memset() initializes the bytes in the "dest" character array to the character value "c". The number of bytes to be set is determined by the parameter "num".

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/memory.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.