Parsing null terminated strings in a binary.

Eric Merritt cyberlync@REDACTED
Thu Jan 13 08:03:09 CET 2005


 I have a need to parse out a series of null terminated fields a
binary. The easiest way to do this is to simply traverse the binary
using bit syntax until a null byte occurs. However, I believe this
would be less then efficient as a new binary would be created for each
byte matched. Aside from created a C port to actually do the parsing
do any of you have any ideas on how to do this efficiently?

I'm a programmer, I don't have to spell correctly; I just have to
spell consistently

More information about the erlang-questions mailing list