Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

strtok (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the string class.

Syntax

c = strtok(a)

c = strtok(a, b)

[c, d] = strtok(a)

[c, d] = strtok(a, b)

Description

Determines the first delimited token in a string. c = strtok(a) determines the first token that is delimited by white space. c = strtok(a, b) determines the first token that is delimited by another string.

Examples

Inputs

Name Description
a Specifies the string in which you want to find the first delimited token.
b Specifies a string that delimits the token you want to find.

Outputs

Name Description
c Returns the first delimited token. c is a string.
d Returns the part of a, including the delimiter, that follows c.

Examples

A = 'this is a test for strtok'
B = 'is'
[C, D] = strtok(A, B)

Related Topics

findstr
strncmp
strfind
strmatch


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit