Skip to content
  • Thomas Haller's avatar
    libnm: add internal API nm_utils_inet*_ntop_dup() · 898f7a56
    Thomas Haller authored
    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.
    898f7a56