Guardian C Library Calls Reference Manual
movmem (supplementary)
3-126 128833—Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
movmem (supplementary)
The movmem function moves a block of memory. It performs the move so that data is
preserved even if the source block overlaps the destination block.
blk_ptr
points to the beginning of the block.
dest_ptr
points to the destination where movmem moves the block.
nbytes
specifies the number of bytes to move.
Return Value
none.
Example
This example moves 100 bytes to dest:
#include <memoryh>
char blk[100];
char dest[100];
/* ... */
movmem(blk, dest, 100);
__ns_backup_fopen (supplementary)
For active backup process pairs, the __ns_backup_fopen function performs a backup
open for a file that was opened in the primary process using ANSI-model I/O.
file_open_state
points to a variable that stores the file open state information.
#include <memoryh>
void movmem(char *blk_ptr, char *dest_ptr, size_t nbytes);
#include <nonstoph>
FILE *__ns_backup_fopen(
__ns_std_io_file_open_state *file_open_state);