libslc: Implementation of _vsprintf