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.
main.cpp
00001 #include "mbed.h" 00002 /* strncmp example */ 00003 #include <stdio.h> 00004 #include <string.h> 00005 00006 int main () 00007 { 00008 char str[][5] = { "R2D2" , "R2PO" , "R2A6", "R2xx" }; 00009 int n; 00010 puts ("Looking for R2 astromech droids..."); 00011 for (n=0 ; n<4 ; n++)// 4 es numero de elementos 00012 if (strncmp (str[n],"R2xx",2) == 0) 00013 { 00014 printf ("found %s\n",str[n]); 00015 } 00016 return 0; 00017 }
Generated on Sat Jul 16 2022 19:17:04 by
1.7.2