The qDecoder Project

qSystem.c File Reference

System API. More…


Functions

const char * qSysGetEnv (const char *envname, const char *nullstr)
 Get system environment variable.
char * qSysCmd (const char *cmd)
 Get the result string of external command execution.
const char * qDecoderVersion (void)
 Get the version string of qDecoder library.


Detailed Description

System API.


Function Documentation

const char* qSysGetEnv ( const char *  envname,
const char *  nullstr 
)

Get system environment variable.

Parameters:
envname environment name
nullstr if not found, return this string
Returns:
a pointer of environment variable

char* qSysCmd ( const char *  cmd  ) 

Get the result string of external command execution.

Parameters:
cmd external command
Returns:
malloced string pointer which contains result if successful, otherwise returns NULL
Note:
If the command does not report result but it is executed successfully, this will returns empty string(not null)

const char* qDecoderVersion ( void   ) 

Get the version string of qDecoder library.

Returns:
a pointer of version string


[Home] [About] [Examples] [Changes] [Download] [SVN Repository] [Install] [Reference]