srv_bmove

Description

Copy bytes from one memory location to another.

Syntax

CS_VOID srv_bmove(sourcep, destp, count)
CS_VOID     *sourcep;
CS_VOID     *destp;
CS_INT        count;

Parameters

sourcep

A non-null pointer to the source of the data to be copied.

destp

A non-null pointer to the destination for the data to be copied.

count

The number of bytes to copy from sourcep to destp.

Returns

None.

Examples

Example 1

#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;
}

Usage

See also

srv_bzero