Next: , Previous: I am trying to port code from AT&T lex that uses yysptr and yysbuf., Up: FAQ


Is there a way to make flex treat NULL like a regular character?

Yes, ‘\0’ and ‘\x00’ should both do the trick. Perhaps you have an ancient version of flex. The latest release is version 2.5.37.