Tokenize a string: Difference between revisions

Content added Content deleted
No edit summary
(Added BBC BASIC)
Line 177: Line 177:
NEXT
NEXT
END IF</lang>
END IF</lang>

=={{header|BBC BASIC}}==
{{works with|BBC BASIC for Windows}}
<lang bbcbasic> INSTALL @lib$+"STRINGLIB"
text$ = "Hello,How,Are,You,Today"
n% = FN_split(text$, ",", array$())
FOR i% = 0 TO n%-1
PRINT array$(i%) "." ;
NEXT
PRINT</lang>


=={{header|C}}==
=={{header|C}}==