C语言中执行本地脚本命令的接口为system函数。
system函数的原型为:
#include<stdlib.h>
int system(const char* command);
该函数会将command命令传递给本地的命令处理器执行,在Windows环境下为DOS命令提示符处理器cmd.exe,在UNIX类系统中则为shell外壳程序。
具体请参照http://pubs.opengroup.org/onlinepubs/009604499/functions/system.html