13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="strtok">
15
<refname>strtok</refname>
16
<refpurpose>Split string into tokens</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>res = strtok(str,delimiters)</synopsis>
23
<title>Arguments</title>
28
<para>A character string</para>
32
<term>delimiters</term>
34
<para>A character string</para>
40
<para>A character string</para>
46
<title>Description</title>
48
<literal>res = strtok(str,delimiters)</literal> sequence of calls to this function split str into tokens, which are sequences of contiguous characters spearated by any of the characters that are part of delimiters.
52
<title>Examples</title>
53
<programlisting role="example"><![CDATA[
15
<refname>strtok</refname>
16
<refpurpose>Split string into tokens</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>res = strtok(str,delimiters)</synopsis>
23
<title>Arguments</title>
28
<para>A character string</para>
32
<term>delimiters</term>
34
<para>A character string</para>
40
<para>A character string</para>
46
<title>Description</title>
48
<literal>res = strtok(str,delimiters)</literal> sequence of calls to this function split str into tokens, which are sequences of contiguous characters spearated by any of the characters that are part of delimiters.
52
<title>Examples</title>
53
<programlisting role="example"><![CDATA[
55
55
token = strtok("A string of ,,tokens and some more tokens"," ,");
56
56
TOKENS = [TOKENS,token];
62
62
]]></programlisting>
64
<refsection role="see also">
65
<title>See Also</title>
66
<simplelist type="inline">
68
<link linkend="strrchr">strrchr</link>
71
<link linkend="strchr">strchr</link>
64
<refsection role="see also">
65
<title>See Also</title>
66
<simplelist type="inline">
68
<link linkend="strrchr">strrchr</link>
71
<link linkend="strchr">strchr</link>