XINU
Functions
xsh_exit.c File Reference

XINUシェルにおけるexitコマンドを提供する。 More...

#include <xinu.h>
Include dependency graph for xsh_exit.c:

Go to the source code of this file.

Functions

shellcmd xsh_exit (int nargs, char *args[])
 exitコマンドとして、シェル終了を引き起こす終了コードを返す。 More...
 

Detailed Description

XINUシェルにおけるexitコマンドを提供する。

exitコマンドは、シェル終了を引き起こす終了コードを返す。

Definition in file xsh_exit.c.

Function Documentation

◆ xsh_exit()

shellcmd xsh_exit ( int  nargs,
char *  args[] 
)

exitコマンドとして、シェル終了を引き起こす終了コードを返す。

Parameters
[in]nargs引数の数(使用しない)
[in]args引数(使用しない)
Returns
SHELL_EXITを返す。

Definition at line 17 of file xsh_exit.c.

References SHELL_EXIT.

18 {
19  return SHELL_EXIT;
20 }
#define SHELL_EXIT
XINUシェルを終了させる返り値
Definition: shell.h:88