parse.c File Reference

#include "libc.h"

Functions

int parse (char *buf, int len, t_cmd_fn cmd)

Variables

char pargmem [MAXARGV][MAXARGLEN]
char * pargv [MAXARGV+1]
int pargc

Function Documentation

int parse char *  buf,
int  len,
t_cmd_fn  cmd
 

Parses the specified buffer recognizing comments beginning with a sharp sign, double quotes and special quotes <> (for preprocessor catenation). Ignores tabs and whitespaces.

This parser uses a static buffer and so, does not allocate memory.


Variable Documentation

int pargc
 

char pargmem[MAXARGV][MAXARGLEN]
 

char* pargv[MAXARGV+1]
 


Generated on Wed May 24 23:05:54 2006 for LSE/OS by  doxygen 1.4.6