Agilent Technologies E4370A Video Gaming Accessories User Manual


 
7 - C Program Examples
114
/*****************************************************************************
Return a timestamp string.
*****************************************************************************/
void GetTimeStamp(char *szTimeStamp)
{
char buf[128];
_strdate(szTimeStamp);
strcat(szTimeStamp, " ");
_strtime(buf);
strcat(szTimeStamp, buf);
strcat(szTimeStamp, "\r\n");
}
/*****************************************************************************
Error handler function.
*****************************************************************************/
void ErrorHandler(CF_HANDLE server, char *name, int error)
{
printf("ErrorHandler: Server = %d Function = %s Error = %d\n",
server, name, error);
}