background image
<< Generating Unique Device Names | Setting the Field Demarcation Characters >>
<< Generating Unique Device Names | Setting the Field Demarcation Characters >>

RteGenerateDeviceName function

RTE Vuser Scripts · Recording RTE Vuser Scripts
Creating Vuser Scripts
Chapter 15, page 281
In the following example, the RteGenerateDeviceName function generates unique
device names with the format "TERMx". The first name is TERM0, followed by
TERM1, TERM2 etc.
RteGenerateDeviceName(char buf[32])
{
static int n=0;
sprintf(buf, "TERM%d", n);
n=n+1;
}