Simple utilities sink - stuff that doesn't fit anywhere else / objects in plain C Snapshot
strtk.c
Go to the documentation of this file.
00001 #include "strtk.h"
00002 #include <string.h>
00003 
00004 void STRTK_init( STRTK *tok , const char *stop_chars )
00005 {
00006   uint8_t *pos;
00007   memset( tok->pattern, 0, STRTK_PATTERN_SIZE );
00008 
00009   for( pos = (uint8_t *) stop_chars; *pos != '\0'; ++pos ) {
00010     STRTK_add_char( tok, *pos );  
00011   }
00012 }
00013 
00014