srv_bzero

Sets the contents of a memory location to 0.

Syntax

int srv_bzero (
void *
location,
DBINT
count );

where

location
Is a pointer to the source of the data to be set to 0.
count
Specifies the number of bytes to set to 0.

Returns

SUCCEED if the memory was successfully set to 0; otherwise, FAIL.

Remarks

The memory location must be a valid non-null pointer. The srv_bzero function is provided for backward compatibility with earlier versions of Open Data Services. It is equivalent to the memset function.

See Also

This entry For information about
srv_bmove Copying bytes to memory