Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:b487e71bf887, committed 2012-04-03
- Comitter:
- sherckuith
- Date:
- Tue Apr 03 21:05:57 2012 +0000
- Commit message:
- strtok, descripcion y ejemplo
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Apr 03 21:05:57 2012 +0000 @@ -0,0 +1,19 @@ +#include "mbed.h" +/* strtok example */ +#include <stdio.h> +#include <string.h> + +int main () +{ + char str[] ="- This, a sample string."; + char * pch; + printf ("Splitting string \"%s\" into tokens:\n",str); + pch = strtok (str," ,.-"); + printf ("str:%s\n",pch); + while (pch != NULL) + { + printf ("%s\n",pch); + pch = strtok (NULL, " ,.-"); + } + return 0; +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Apr 03 21:05:57 2012 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/737756e0b479