SW500009 Microchip Technology, SW500009 Datasheet - Page 276

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
STRSTR, STRISTR
Synopsis
Description
The strstr() function locates the first occurrence of the sequence of characters in the string pointed
to by s2 in the string pointed to by s1.
Example
Return Value
Pointer to the located string or a null pointer if the string was not found.
262
The stristr() routine is the case-insensitive version of this function.
#include <string.h>
/* For baseline and midrange processors */
const char * strstr (const char * s1, const char * s2)
const char * stristr (const char * s1, const char * s2)
/* For high-end processors */
char * strstr (const char * s1, const char * s2)
char * stristr (const char * s1, const char * s2)
#include <stdio.h>
#include <string.h>
void
main (void)
{
}
printf("%d\n", strstr("This is a string", "str"));
Library Functions

Related parts for SW500009