DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH
 

(gperf.info.gz) Binary Strings

Info Catalog (gperf.info.gz) Output Format (gperf.info.gz) Description
 
 Use of NUL characters
 =====================
 
    By default, the code generated by `gperf' operates on zero
 terminated strings, the usual representation of strings in C. This means
 that the keywords in the input file must not contain NUL characters,
 and the STR argument passed to `hash' or `in_word_set' must be NUL
 terminated and have exactly length LEN.
 
    If option `-c' is used, then the STR argument does not need to be
 NUL terminated. The code generated by `gperf' will only access the
 first LEN, not LEN+1, bytes starting at STR.  However, the keywords in
 the input file still must not contain NUL characters.
 
    If option `-l' is used, then the hash table performs binary
 comparison. The keywords in the input file may contain NUL characters,
 written in string syntax as `\000' or `\x00', and the code generated by
 `gperf' will treat NUL like any other character.  Also, in this case
 the `-c' option is ignored.
 
Info Catalog (gperf.info.gz) Output Format (gperf.info.gz) Description
automatically generated byinfo2html