![](/media/cache/profiles/e53ba686b7ad2ec7825f0f4afff80a1b.50x50_q85.jpg)
system, descripcion y ejemplo
main.cpp
- Committer:
- sherckuith
- Date:
- 2012-04-03
- Revision:
- 0:9b20d4530075
File content as of revision 0:9b20d4530075:
#include "mbed.h" /* system example : DIR */ #include <stdio.h> #include <stdlib.h> int main () { int i; printf ("Checking if processor is available..."); if (system(NULL)) puts ("Ok"); else exit (1); printf ("Executing command DIR...\n"); i=system ("dir"); printf ("The value returned was: %d.\n",i); return 0; }