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

PCWHD PIC10,16,18,24, DSPIC

PCWHD IDE COMPILER

Manufacturer Part Number
PCWHD IDE COMPILER
Description
PCWHD PIC10,16,18,24, DSPIC
Manufacturer
Custom Computer Services Inc (CCS)
Type
Compilerr
Datasheet

Specifications of PCWHD IDE COMPILER

For Use With/related Products
Microchip PIC10, PIC12, PIC16, PIC18, PIC24, dsPIC MCUs
Lead Free Status / RoHS Status
Not applicable / Not applicable
Other names
429-1009
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 PCWHD IDE COMPILER