listargs.c

来自「unix linux 编程实践源代码」· C语言 代码 · 共 17 行

C
17
字号
/* listargs.c *              print the number of command line args, list the args, *		then print a message to stderr */#include	<stdio.h>main( int ac, char *av[] ){	int	i;	printf("Number of args: %d, Args are:\n", ac);	for(i=0;i<ac;i++)		printf("args[%d] %s\n", i, av[i]);	fprintf(stderr,"This message is sent to stderr.\n");}

⌨️ 快捷键说明

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