srv_bmove

Copies bytes from one memory location to another.

Syntax

int srv_bmove (
void *
from,
void
* to,
DBINT
count );

where

from
Is a pointer to the source of the data to be copied.
to
Is a pointer to the destination of the data to be copied.
count
Specifies the number of bytes to copy from the source to the destination.

Returns

SUCCEED if the move was successful; otherwise, FAIL.

Remarks

The values for from and to must be valid non-null pointers. Only count bytes are moved and no null-terminator is added. The srv_bmove function is provided for backward compatibility with earlier versions of Open Data Services. It is equivalent to the memcpy function.

See Also

This entry For information about
srv_alloc Allocating memory dynamically
srv_bzero Setting memory contents to 0