lclnt1.c

来自「unix编程实践教程代码。适合初学者」· C语言 代码 · 共 30 行

C
30
字号
/**************************************************************************** * lclnt1.c * License server client version 1 *  link with lclnt_funcs1.o dgram.o */#include <stdio.h>int main(int ac, char *av[]){	setup();	if (get_ticket() != 0 )		exit(0);		do_regular_work();	release_ticket();	shut_down();}/**************************************************************************** * do_regular_work  the main work of the application goes here */do_regular_work(){	printf("SuperSleep version 1.0 Running - Licensed Software\n");	sleep(10);	/* our patented sleep algorithm */}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?