XINU
xsh_argecho.c
Go to the documentation of this file.
1 
5 #include <xinu.h>
6 #include <stdio.h>
7 
15 shellcmd xsh_argecho(int nargs, char *args[])
16 {
17  int32 i;
18 
19  printf("\n\nThe %d arguments are:\n", nargs);
20  for (i = 0; i < nargs; i++)
21  {
22  printf(" %2d: %s\n", i, args[i]);
23  }
24  printf("\n");
25 
26  return 0;
27 }
全てのシステムヘッダファイルをインクルードする。
shellcmd xsh_argecho(int nargs, char *args[])
引数を順に表示する。
Definition: xsh_argecho.c:15
int32 printf(const char *,...)
Definition: printf.c:13
int int32
符号あり32ビット整数(int)
Definition: kernel.h:11
int32 shellcmd
シェルコール関数 返り値の型
Definition: kernel.h:51