[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
regexp funcs versus '\0'
From: |
Kevin Ryde |
Subject: |
regexp funcs versus '\0' |
Date: |
Sun, 22 Aug 2004 11:38:26 +1000 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
When calling a C function that expects a '\0' terminated string, I
wonder if the guile string should be checked and an error thrown if
there's a \0 (apart from the terminator). That'd ensure the input
doesn't get silently "truncated".
I noticed this in the regexp matching functions, where I was trying
each possible character as a test, and #\nul didn't work.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- regexp funcs versus '\0',
Kevin Ryde <=