PCDIDE COMPILER Custom Computer Services Inc (CCS), PCDIDE COMPILER Datasheet - Page 226

PCD C-COMPILER PIC24, DSPIC

PCDIDE COMPILER

Manufacturer Part Number
PCDIDE COMPILER
Description
PCD C-COMPILER PIC24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCDIDE COMPILER

For Use With/related Products
Microchip PIC24/dsPIC®
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1008
memcpy( ) memmove( )
Syntax:
Parameters:
Returns:
Function:
Availability:
Requires:
Examples:
Example Files:
Also See:
memset( )
Syntax:
Parameters:
Returns:
Function:
212
memcpy (destination, source, n)
memmove(destination, source, n)
destination is a pointer to the destination memory, source is a pointer to the
source memory, n is the number of bytes to transfer
undefined
Copies n bytes from source to destination in RAM. Be aware that array names are
pointers where other variable names and structure names are not (and therefore
need a & before them).
Memmove performs a safe copy (overlapping objects doesn't cause a problem).
Copying takes place as if the n characters from the source are first copied into a
temporary array of n characters that doesn't overlap the destination and source
objects. Then the n characters from the temporary array are copied to destination.
All devices
Nothing
memcpy(&structA, &structB, sizeof (structA));
memcpy(arrayA,arrayB,sizeof (arrayA));
memcpy(&structA, &databyte, 1);
char a[20]="hello";
memmove(a,a+2,5);
// a is now "llo"MEMMOVE()
None
strcpy(),
memset (destination, value, n)
destination is a pointer to memory, value is a 8 bit int, n is a 16 bit int.
undefined
Sets n number of bytes, starting at destination, to value. Be aware that array
names are pointers where other variable names and structure names are not (and
therefore need a & before them).
memset()

Related parts for PCDIDE COMPILER