libnm: add internal API nm_utils_inet*_ntop_dup()
In quite some cases we need the string representation on the heap. While nm_utils_inet*_ntop() accepts NULL as output buffer to fallback to a static buffer, such usage of a static buffer is discouraged. So, we actually should always allocate a temporaray buffer on the stack. But that is cumbersome to write. Add simple wrappers that makes calling this more convenient.
Showing with 24 additions and 0 deletions