C Language Development Kit/Functions/GetTerminalId
From OptiWiki
| 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. |
| Syntax | 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. |
| Example | #include "lib.h" #include <stdio.h> void main( void ) { setterminalid( 1234 ); printf("\fterminal ID\n%d", getterminalid() ); while( 1 ) idle(); } |
