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 00003 /* system example : DIR */ 00004 #include <stdio.h> 00005 #include <stdlib.h> 00006 00007 int main () 00008 { 00009 int i; 00010 printf ("Checking if processor is available..."); 00011 if (system(NULL)) puts ("Ok"); 00012 else exit (1); 00013 printf ("Executing command DIR...\n"); 00014 i=system ("dir"); 00015 printf ("The value returned was: %d.\n",i); 00016 return 0; 00017 } 00018 00019 00020 00021 //Output: 00022 //38 div 5 => 7, remainder 3.
Generated on Tue Jul 19 2022 04:55:43 by
1.7.2