Share this page

# Example: RteGenerateDeviceName

In the following example, the RteGenerateDeviceName function generates unique device names with the format "TERMx". The first name is TERM0, followed by TERM0, TERM2, etc.

RteGenerateDeviceName(char buf[32])

{

static int n=0;

sprintf(buf, "TERM%d", n);

n=n+1;

}

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: