login_bak.c

来自「多用户银行系统」· C语言 代码 · 共 37 行

C
37
字号
/*#include <unistd.h>#include <dlfcn.h> #include <stdio.h>*/#include <stdlib.h> // malloc#include <signal.h>#include "../include/structs.h"#include "../include/stddef.h"void mysig(int sig);SHM *shm;int main(){	USER user;	char *guifile;	char *oper;		// to ignal Ctrl+C	//signal(SIGINT , SIG_IGN); 	oper = (char *)malloc(sizeof(char) * (OPER_SIZE + 1));	guibuf = (char *)malloc(sizeof(char) * (GUI_BUF_SIZE + 1));	if(!oper || !guibuf){		printf("malloc error !\n");		exit(1);		}	getInput(&user);	readFile(guibuf);	while(1){		showGUI(guibuf);		getChoice(oper);		//execute_(oper);			execute(oper);	}}

⌨️ 快捷键说明

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