unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* regexp funcs versus '\0'
@ 2004-08-22  1:38 Kevin Ryde
  0 siblings, 0 replies; only message in thread
From: Kevin Ryde @ 2004-08-22  1:38 UTC (permalink / raw)


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.


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-22  1:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-22  1:38 regexp funcs versus '\0' Kevin Ryde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).