Should this wrapper be implemented the same way as the snprintf above? Do you have a suggestion?