Main Page | Data Structures | File List | Data Fields | Globals

kfaml.c File Reference

#include "kfaml.h"

Functions

Llistkfaml_parse (char *stream, char **tags, int depth)
void kfaml_free (Llist *tree)

Detailed Description

A simple XML style tag parser. v0.1

Function Documentation

void kfaml_free Llist tree  ) 
 

Parameters:
tree A list of sibling nodes. Frees a list of sibling tags, their members and children. If you pass the base list the entire tree will be freed.

Llist* kfaml_parse char *  stream,
char **  tags,
int  depth
 

Parameters:
stream The string to parse.
tags A list of valid, expected tags. (Optional, expects XML syntax if absent)
depth The current depth. This is for internal use, use 0.
Return values:
#Llist * Of the sibling nodes. This should be the base of the tree.
NULL When their is nothing to parse, or on error. This function parses a simple XML style file and returns the broken down tree.


Generated on Fri Jun 4 18:35:19 2004 for cuf by doxygen 1.3.6