tests: implement xcasprintf()
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 22 Feb 2017 15:18:30 +0000 (16:18 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 22 Feb 2017 15:18:30 +0000 (16:18 +0100)
commit31af92a9aa800beff4dee1ba35e871feff04fad3
tree238018d6b6fcb3937c0e2a567d6d0e992404907e
parent7f27dc161853184f18f52458dbd0f0f675e7b98c
tests: implement xcasprintf()

Add another flavor of xasprintf() which can also return the number of
bytes written to the created string.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/unit/gpiod-unit.c