SW006013 Microchip Technology, SW006013 Datasheet - Page 131

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2008 Microchip Technology Inc.
strncat (Continued)
}
Output:
buf1 : We're here
buf2 : Where is the time?
buf3 : Why?
buf1 after strncat of 6 characters of buf2:
buf1 after strncat of 25 characters of buf2:
buf1 after strncat of 4 characters of buf3:
We're hereWhere Where is the time?Why?
printf("buf1 : %s\n", buf1);
printf("\t(%d characters)\n\n", strlen(buf1));
printf("buf2 : %s\n", buf2);
printf("\t(%d characters)\n\n", strlen(buf2));
printf("buf3 : %s\n", buf3);
printf("\t(%d characters)\n\n\n", strlen(buf3));
strncat(buf1, buf2, 6);
printf("buf1 after strncat of 6 characters "
printf("\t(%d characters)\n", strlen(buf1));
printf("\n");
strncat(buf1, buf2, 25);
printf("buf1 after strncat of 25 characters "
printf("\t(%d characters)\n", strlen(buf1));
printf("\n");
strncat(buf1, buf3, 4);
printf("buf1 after strncat of 4 characters "
printf("\t(%d characters)\n", strlen(buf1));
(10 characters)
(18 characters)
(4 characters)
We're hereWhere
(16 characters)
We're hereWhere Where is the time?
(34 characters)
(38 characters)
"of buf2: \n\t%s\n", buf1);
"of buf2: \n\t%s\n", buf1);
"of buf3: \n\t%s\n", buf1);
DS51456E-page 127

Related parts for SW006013