diff scripts/strings/strtok.m @ 21634:96518f623c91

Backed out changeset dcf8922b724b
author Mike Miller <mtmiller@octave.org>
date Wed, 20 Apr 2016 11:06:03 -0700
parents dcf8922b724b
children bac0d6f07a3e
line wrap: on
line diff
--- a/scripts/strings/strtok.m	Wed Apr 20 17:53:10 2016 +0200
+++ b/scripts/strings/strtok.m	Wed Apr 20 11:06:03 2016 -0700
@@ -145,13 +145,13 @@
 %! s = "14*27+31"
 %! while (1)
 %!   [t, s] = strtok (s, "+-*/");
-%!   fprintf ("<%s>", t);
+%!   printf ("<%s>", t);
 %!   if (isempty (s))
 %!     break;
 %!   endif
-%!   fprintf ("<%s>", s(1));
+%!   printf ("<%s>", s(1));
 %! endwhile
-%! fprintf ("\n");
+%! printf ("\n");
 %! % ----------------------------------------------------
 %! % Demonstrates processing of an entire string split on
 %! % a variety of delimiters.  Tokens and delimiters are