HTBasic Help
×
Menu
Index

SYSTEM$ Function

 
int systemd( char *arg, char *buf, int max, int *len );
 
Where:
  arg - pointer to null terminated request string
  buf - string buffer pointer
  max - maximum buffer length
  len - returned string length
 
Description
This routine performs a SYSTEM$( ) function and returns a null terminated response in the string buffer and sets len to the length of the response. The return value is either a zero, indicating no errors, or an HTBasic error code.
 
Example
int  error;
char buf[160];
int  len;
error = systemd( "VERSION:HTB", buf, 160, &len );