Warner Losh <[email protected]> writes:
> Log:
> Implement quote escaping. String values may now contain " if you
> it is preceded by \.
If you're interested, openpam_readword(3) implements the full POSIX
shell quoting rules, including line continuations and multi-line quoted
strings, and should be fairly easy to translate to C++. There is also
an openpam_readlinev(3) which reads a full line (or more in case of line
continuations) and returns an array of words. Obviously, you'll want to
copy & adapt them rather than link devd with libpam.
contrib/openpam/lib/libpam/openpam_read{word,linev}.c
DES
--
Dag-Erling Smørgrav - [email protected]
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"