hostlist_ranged_string_xmalloc, hostlist_deranged_string_malloc, and hostlist_deranged_string_xmalloc which will allocate memory as needed.