system, descripcion y ejemplo
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 /* system example : DIR */ 00003 #include <stdio.h> 00004 #include <stdlib.h> 00005 00006 int main () 00007 { 00008 int i; 00009 printf ("Checking if processor is available..."); 00010 if (system(NULL)) puts ("Ok"); 00011 else exit (1); 00012 printf ("Executing command DIR...\n"); 00013 i=system ("dir"); 00014 printf ("The value returned was: %d.\n",i); 00015 return 0; 00016 }
Generated on Thu Jul 14 2022 23:46:49 by
1.7.2