SW500011 Microchip Technology, SW500011 Datasheet - Page 272

HI-TECH X PRO FOR PIC32

SW500011

Manufacturer Part Number
SW500011
Description
HI-TECH X PRO FOR PIC32
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC32r
Datasheet

Specifications of SW500011

No. Of User Licenses
1
Supported Families
PIC32
Core Architecture
PIC
Supported Hosts
Windows XP, Vista, Linux, Mac OS X
Software Edition
Professional
Kit Contents
Software And Docs
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC32 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
032
778-1007
778-1007
STRTOK
Synopsis
Description
A number of calls to strtok() breaks the string s1 (which consists of a sequence of zero or more text
tokens separated by one or more characters from the separator string s2) into its separate tokens.
token, or NULL if no tokens were found. The inter-token separator character is overwritten by a null
character, which terminates the current token.
from the end of the last token found, and again return a pointer to the first character of the next token,
or NULL if no further tokens were found.
Example
272
The first call must have the string s1. This call returns a pointer to the first character of the first
For subsequent calls to strtok(), s1 should be set to a null pointer. These calls start searching
#include <string.h>
char * strtok (char * s1, const char * s2)
#include <stdio.h>
#include <string.h>
void
main (void)
{
}
char * ptr;
char buf[] = "This is a string of words.";
char * sep_tok = ".,?! ";
ptr = strtok(buf, sep_tok);
while(ptr != NULL) {
}
printf("%s\n", ptr);
ptr = strtok(NULL, sep_tok);
Library Functions

Related parts for SW500011