1 // SPDX-License-Identifier: LGPL-2.1
8 * Wrapper to allow for building in non-GNU systems such as Alpine Linux's musl
9 * libc, while checking strerror_r() return to avoid having to check this in
10 * all places calling it.
12 char *str_error(int err, char *dst, int len)
14 int ret = strerror_r(err, dst, len);
16 snprintf(dst, len, "ERROR: strerror_r(%d)=%d", err, ret);