Memmove - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Memory Management

memmove

Declaration:
void * memmove (void * dest , const void * source , size_t length )
Category(ies):
Memory Management
Description:
Copies length bytes from source to dest . Note that memmove, unlike
memcpy, works properly even if some regions of source or dest overlap.
dest
Inputs:
source — Source of move.
length
dest is returned.
Outputs:
None
Assumptions:
Side Effects:
None
Availability:
All versions of the TI-89 / TI-92 Plus.
TI-89 / TI-92 Plus
Differences:
None
See Also:
strncpy, memcpy
Example:
char serno[11];
/* Assuming serno contains a 10 digit serial number, split it into two 5-digit
groups. Must use memmove since the two regions overlap
*/
memmove( &serno[6], &serno[5], 6 );
serno[5] = ' ';
TI-89 / TI-92 Plus Developer Guide
— Destination of move.
— Size of move in bytes.
Not for Distribution
867
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents