SW500007 Microchip Technology, SW500007 Datasheet - Page 295

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
Library Functions
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
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);
281

Related parts for SW500007