![]() |
YASH 0.1
CLI written in C
|
Parse functions for the YASH shell. More...
#include "yash.h"Go to the source code of this file.
Functions | |
| int | parse_line (char *line, Line *line_out) |
| Parse a line of input and store the result in line_out. | |
| int | tokenize_line (char *line, char *tokens[], int *num_tokens) |
| Tokenize a line of input and store the result in tokens. | |
Parse functions for the YASH shell.
This header file contains the parse functions for the YASH shell.
| int parse_line | ( | char * | line, |
| Line * | line_out ) |
Parse a line of input and store the result in line_out.
| line | Assume the string is properly null-terminated, no newline characters and no more than 2000 characters (i.e. no more than MAX_CMDLINE - 1 characters) |
| line_out |
| int tokenize_line | ( | char * | line, |
| char * | tokens[], | ||
| int * | num_tokens ) |
Tokenize a line of input and store the result in tokens.
| line | Assume the string is properly null-terminated, no newline characters and no more than 2000 characters (i.e. no more than MAX_CMDLINE - 1 characters) |
| tokens | |
| num_tokens |