Kagamin: > You need only match 3-char strings? > Try this hack I agree there are are ways to speed up the code, probably the D #3 code is fast enough. But while some things are better left to Phobos, comparing short strings efficiently is the compiler's job, not mine (and I am not sure your trick works in C99). Bye, bearophile