preproc: generic solution for error on NUL characters in string
commitf9c9a6717c638b796a6d05c980607e9062c11b70
authorH. Peter Anvin <hpa@zytor.com>
Tue, 14 Jul 2009 19:14:05 +0000 (14 15:14 -0400)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 14 Jul 2009 19:14:05 +0000 (14 15:14 -0400)
treeffb195fefecd13ed27102035a1c85665425009ea
parent2f55bdaacab22020cc6b02e1efa7fb6e08ca5412
preproc: generic solution for error on NUL characters in string

Strings returned by nasm_unquote() can contain NUL characters, which
will not be legal if then used as a C string.  Create a general
function which looks for NUL characters in the string and issues an
error if they are found.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
preproc.c