MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_21.c
#include <stdio.h>
#include "mates.h"
int main(void)
{
char buf[100];
int idx = 0;
(void)mates_open(NULL, 0);
while (mates_get_last_error(buf, sizeof(buf)) > 0)
{
/* Note: each message has a newline. */
printf("MSG #%04d: %s", idx++, buf);
}
}