Copy bytes from one memory location to another.
CS_VOID srv_bmove(sourcep, destp, count)
CS_VOID *sourcep; CS_VOID *destp; CS_INT count;
A non-null pointer to the source of the data to be copied.
A non-null pointer to the destination for the data to be copied.
The number of bytes to copy from sourcep to destp.
None.
#include <ospublic.h>
/*
** Local Prototype
*/
CS_VOID ex_srv_bmove PROTOTYPE((
CS_VOID *src,
CS_VOID *dest,
CS_INT count
));
/*
** EX_SRV_BMOVE
**
** Example routine to copy data from one area of memory to
another.
**
** Arguments:
** src - The address of the source data.
** dest - The address of the destination buffer.
** count - The number of bytes to copy.
**
** Returns:
** Nothing.
*/
CS_VOID ex_srv_bmove(src, dest, count)
CS_VOID *src;
CS_VOID *dest;
CS_INT count;
{
/*
** Call the Open Server routine that will do the
** actual copy.
*/
srv_bmove(src, dest, count);
/*
** All done.
*/
return;
}
srv_bmove copies count bytes from the memory location *sourcep to the memory location *destp.
Both sourcep and destp must be valid non-null pointers or a memory fault will occur.
Only count bytes are moved and no null terminator is added.