#include <stdio.h>#include <stdlib.h>#include "MALLOC.h"#include "machine.h"#include "systemc.h"Include dependency graph for systemc.c:

Go to the source code of this file.
Functions | |
| int C2F() | systemc (char *command, integer *stat) |
Excute a command by the system
| [in] | command | the command |
| [out] | the | status of the operation |
Definition at line 16 of file systemc.c.
References command, FALSE, and stat.
00017 { 00018 #ifdef _MSC_VER 00019 { 00020 BOOL Status=FALSE; 00021 Status=CallWindowsShell(command,FALSE); 00022 if (Status) 00023 { 00024 *stat=(integer)0; 00025 } 00026 else 00027 { 00028 *stat=(integer)1; 00029 } 00030 } 00031 #else 00032 { 00033 int status; 00034 status=system(command); 00035 *stat=(integer)status; 00036 } 00037 #endif 00038 00039 return(0); 00040 }
1.5.1