Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

gettsn - Query TSN (task sequence number)

&pagelevel(4)&pagelevel

Definition   

#include <stdlib.h>

char *gettsn(void);

gettsn returns the task sequence number (TSN) of the calling program.

Return val.

Pointer to the task sequence number (TSN).

Note

gettsn writes its result into an internal C data area that is overwritten with each call!

Example

#include <stdio.h>
#include <stdlib.h>
int main(void)
{
  printf("Example showing the use of gettsn():\n");
  printf("The TSN number of the program %s : %s\n", getpgmname(), gettsn());
  return 0;
}