necho.c

来自「UNIX下SH的实现源码」· C语言 代码 · 共 34 行

C
34
字号
/* necho - echo without options or argument interpretation *//* Sample builtin to be dynamically loaded with enable -f and replace an   existing builtin. */#include <stdio.h>#include "builtins.h"#include "shell.h"necho_builtin (list)WORD_LIST *list;{	print_word_list (list, " ");	printf("\n");	fflush (stdout);	return (EXECUTION_SUCCESS);}char *necho_doc[] = {	"Print the arguments to the standard ouput separated",	"by space characters and terminated with a newline.",	(char *)NULL};	struct builtin necho_struct = {	"echo",	necho_builtin,	BUILTIN_ENABLED,	necho_doc,	"echo [args]",	0};	

⌨️ 快捷键说明

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