C Language Development Kit/Functions/GetTerminalId

From OptiWiki

Jump to: navigation, search
Description This function returns the number that is set in the system menu, under the

"Set terminal ID" option. It is also possible to use the function setterminalid() to change the value of the terminal id.

unsigned int getterminalid(void);
Arguments None
Returns The number set in the system menu.
Remarks How to activate the system menu can be read here.
#include "lib.h"
#include <stdio.h>
void main( void )
    setterminalid( 1234 );
    printf("\fterminal ID\n%d", getterminalid() );
    while( 1 )

Personal tools