systemc.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int C2F() systemc (char *command, integer *stat)


Function Documentation

int C2F() systemc ( char *  command,
integer stat 
)

Excute a command by the system

Parameters:
[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 }


Generated on Sun Mar 4 16:09:17 2007 for Scilab [trunk] by  doxygen 1.5.1