SW500009 Microchip Technology, SW500009 Datasheet - Page 258

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
STRCHR, STRICHR
Synopsis
Description
The strchr() function searches the string s for an occurrence of the character c. If one is found, a
pointer to that character is returned, otherwise NULL is returned.
Example
244
The strichr() function is the case-insensitive version of this function.
#include <string.h>
/* For baseline and midrange processors */
const char * strchr (const char * s, int c)
const char * strichr (const char * s, int c)
/* For high-end processors */
char * strchr (const char * s, int c)
char * strichr (const char * s, int c)
#include <strings.h>
#include <stdio.h>
void
main (void)
{
}
static char temp[] = "Here it is...";
char c = ’s’;
if(strchr(temp, c))
else
printf("Character %c was found in string\n", c);
printf("No character was found in string");
Library Functions

Related parts for SW500009