contents   index   previous   next



Clib.memset()

syntax:

Clib.memset(buf, chr[, maxLen])

where:

buf - a byte array or buffer.

 

chr - character to set in buf.

 

maxLen - number of bytes in buf to set to chr.

 

return:

buffer - buf with the appropriate number of bytes set to chr.

 

description:

This method sets the first number, as specified by maxLen, of bytes of buf to character chr. If buf is not already defined, then it is defined as a buffer of size maxLen. If the length of buf is less than the number of bytes specified by maxLen, then buf is grown to be big enough for maxLen bytes. If the parameter maxLen is not supplied, then maxLen is the size of buf, starting at index 0.

 

see:

Clib.memchr()

 

 


Math