File: cmd.h

package info (click to toggle)
hx 0.7.14-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 564 kB
  • ctags: 834
  • sloc: ansic: 7,901; sh: 152; makefile: 81
file content (15 lines) | stat: -rw-r--r-- 288 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _CMD_H
#define _CMD_H 1

struct cmd {
	const char *name;
	int (*main)(int, char *const *, const char *);
	const char *help;
};

extern struct cmd builtin_commands[];

extern struct cmd *cmd_lookup (char *name);
extern int cmd_exec (char *str_ptr, int xpnd);

#endif /* !_CMD_H */