File: tokenizer.h

package info (click to toggle)
hnb 1.9.18-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 812 kB
  • ctags: 725
  • sloc: ansic: 8,117; pascal: 488; makefile: 117
file content (21 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
extern char token_seperator;

/*	tokenize parses a string into tokens (seperate arguements)
	the global char token_seperator defines what character delimits
	the tokens.
	
	The first call to tokenize should have the input string as 
	the argument. Subsequent calls should have the argument set
	to "", as tokenize will work on a copy of the original string
	and keep record of it's progress.
	
	when tokenize sees two token_seperator chars in a row, it
	will think of this as a single seperator character within a token
	
	tokenize will also return the token_seperator char in a string
	if it is placed first or last in the input string.
	
	(c) yvind Kols 2000
*/

char *tokenize (char *haystack);