SW500009 Microchip Technology, SW500009 Datasheet - Page 273

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
Library Functions
STRRCHR, STRRICHR
Synopsis
Description
The strrchr() function is similar to the strchr() function, but searches from the end of the string
rather than the beginning, i.e. it locates the last occurrence of the character c in the null terminated
string s. If successful it returns a pointer to that occurrence, otherwise it returns NULL.
Example
The strrichr() function is the case-insensitive version of this function.
#include <string.h>
/* For baseline and midrange processors */
const char * strrchr (char * s, int c)
const char * strrichr (char * s, int c)
/* For high-end processors */
char * strrchr (char * s, int c)
char * strrichr (char * s, int c)
#include <stdio.h>
#include <string.h>
void
main (void)
{
}
char * str = "This is a string.";
while(str != NULL) {
}
printf( "%s\n", str );
str = strrchr( str+1, ’s’);
259

Related parts for SW500009