Google
 

Trailing-Edge - PDP-10 Archives - SRI_NIC_PERM_FS_1_19910112 - kccdist/lib/test/tspeed.c
There are 5 other files named tspeed.c in the archive. Click here to see a list.
#include <sgtty.h>
#include <stdio.h>
struct sgttyb foo;
main()
{
	gtty(0, &foo);
	printf("Input speed = %d, output = %d\n",
		foo.sg_ispeed, foo.sg_ospeed);
}