SW500009 Microchip Technology, SW500009 Datasheet - Page 256

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
STRCAT
Synopsis
Description
This function appends (contcatenates) string s2 to the end of string s1. The result will be null
terminated. The argument s1 must point to a character array big enough to hold the resultant string.
Example
See Also
strcpy(), strcmp(), strncat(), strlen()
242
#include <string.h>
/* For baseline and midrange processors */
char * strcat (char * s1, const char * s2)
/* For high-end processors */
far char * strcat (far char * s1, const char * s2)
#include <string.h>
#include <stdio.h>
void
main (void)
{
}
char buffer[256];
char * s1, * s2;
strcpy(buffer, "Start of line");
s1 = buffer;
s2 = " ... end of line";
strcat(s1, s2);
printf("Length = %d\n", strlen(buffer));
printf("string = \"%s\"\n", buffer);
Library Functions

Related parts for SW500009