This function has followed me through a few projects for many years. It's time to retire it. It's not too terribly well-written and it's mostly replaced by the standard asprintf call. It's not even used in Sortix at the moment.