- Timestamp:
- 2012-09-22T12:12:12Z (12 years ago)
- Branches:
- master
- Children:
- 11ec078
- Parents:
- 55ccc9a0
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/xmltree.c
r55ccc9a0 rd0752e8 263 263 } 264 264 265 struct xt_node *xt_from_string( const char *in )265 struct xt_node *xt_from_string( const char *in, int len ) 266 266 { 267 267 struct xt_parser *parser; 268 268 struct xt_node *ret; 269 269 270 if( len == 0 ) 271 len = strlen( in ); 272 270 273 parser = xt_new( NULL, NULL ); 271 xt_feed( parser, in, strlen( in ));274 xt_feed( parser, in, len ); 272 275 ret = parser->root; 273 276 parser->root = NULL; -
lib/xmltree.h
r55ccc9a0 rd0752e8 82 82 int xt_handle( struct xt_parser *xt, struct xt_node *node, int depth ); 83 83 void xt_cleanup( struct xt_parser *xt, struct xt_node *node, int depth ); 84 struct xt_node *xt_from_string( const char *in );84 struct xt_node *xt_from_string( const char *in, int text_len ); 85 85 char *xt_to_string( struct xt_node *node ); 86 86 void xt_print( struct xt_node *node );
Note: See TracChangeset
for help on using the changeset viewer.