#include <wchar.h>
|
|
int
wsystem (const wchar_t *string); |
If string is a NULL pointer, wsystem will return non-zero to indicate that wsystem is suporrted and zero if it is not supported.
#include <stdlib.h>
#include <stdio.h> //printf
#include <wchar.h>
int main( void )
{
int retVal = -1;
printf( "Calling wsystem()...\n" );
/* helloworld.exe is an executable that just prints
* "Hello world!" and it should be created before
* executing this example code.
*/
retVal = wsystem(L"c:\\sys\\bin\\helloworld.exe");
/* Print the return value of wsystem() */
printf( "wsystem() returned: %d", retVal );
return 0;
}
Output
Calling wsystem()...
wsystem() returned: -1
|
© 2005-2007 Nokia |