a9d99b32a3
Instead of returning 0, which is unhelpful, return the number of chars copied into the dest string. This allows callers that care about that to easily use it, instead of having to calculate the strlen. No current users of the function check the return value, so this does not break any existing code; it is used in the following patch. |
||
---|---|---|
.. | ||
.gitignore | ||
libudev-device-internal.h | ||
libudev-device-private.c | ||
libudev-device.c | ||
libudev-enumerate.c | ||
libudev-hwdb.c | ||
libudev-list.c | ||
libudev-monitor.c | ||
libudev-private.h | ||
libudev-queue.c | ||
libudev-util.c | ||
libudev.c | ||
libudev.h | ||
libudev.pc.in | ||
libudev.sym | ||
Makefile |