execcmd.h

来自「C++的一个好库。。。现在很流行」· C头文件 代码 · 共 31 行

H
31
字号
/*
 * Copyright 1993, 1995 Christopher Seiwald.
 *
 * This file is part of Jam - see jam.c for Copyright information.
 */

/*
 * execcmd.h - execute a shell script
 *
 * 05/04/94 (seiwald) - async multiprocess interface
 */

typedef struct timing_info
{
    /* double elapsed; */  /* We don't know how to get this number on Unix */
    double system;
    double user;
} timing_info;

void execcmd(
	char *string,
	void (*func)( void *closure, int status, timing_info* ),
	void *closure,
	LIST *shell );

int execwait();

# define EXEC_CMD_OK	0
# define EXEC_CMD_FAIL	1
# define EXEC_CMD_INTR	2

⌨️ 快捷键说明

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