gpgscm: Generalize splice to write to multiple sinks.
authorJustus Winter <justus@g10code.com>
Mon, 7 Nov 2016 16:40:43 +0000 (17:40 +0100)
committerJustus Winter <justus@g10code.com>
Mon, 7 Nov 2016 16:40:43 +0000 (17:40 +0100)
commitabe0cc7a21d2b0b5c77cc525b999d1ede2d29185
tree10a41e272a22868f49565d71e899d06d4d04d86c
parent4d98a72b88cf167295e1ecd6125b9c7a11b6239f
gpgscm: Generalize splice to write to multiple sinks.

* tests/gpgscm/ffi.c (ordinal_suffix): New function.
(do_splice): Generalize splice to write to multiple sinks.
* tests/gpgscm/lib.scm (splice): Document this fact.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/gpgscm/ffi.c
tests/gpgscm/lib.scm