core: implement gpiod_last_strerror()
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 9 Jan 2017 11:37:04 +0000 (12:37 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 9 Jan 2017 11:37:04 +0000 (12:37 +0100)
commit9540285a7b3d470968b4b094ae8de71d06a8b650
tree39091a743274c35e95011248e87317fac0eaf9ee
parentddc8c087d84040ec6ed38b272a28f84b02f74557
core: implement gpiod_last_strerror()

This is the same as gpiod_strerror() except that it automatically
uses the last error number by calling gpiod_errno().

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
core.c
gpiod.h