OurOS 0.1
Operating System built by McGill Students
 
Loading...
Searching...
No Matches
kshell_cmds.h File Reference
#include "io.h"

Go to the source code of this file.

Data Structures

struct  cmd_tbl_entry
 An entry for a shell command. More...
 

Typedefs

typedef int(* cmd_t) (int argc, const char *argv[], putchar put)
 A pointer to a function for a shell command.
 

Functions

cmd_t find_cmd (const char *name)
 Gets the cmd_t of a shell command, or NULL if not found.
 

Typedef Documentation

◆ cmd_t

typedef int(* cmd_t) (int argc, const char *argv[], putchar put)

A pointer to a function for a shell command.

Parameters
argcNumber of arguments.
argvThe arguments.
putThe putchar function.
Returns
Return status.

Function Documentation

◆ find_cmd()

cmd_t find_cmd ( const char *  name)

Gets the cmd_t of a shell command, or NULL if not found.

Parameters
nameName the command.