writing directly to destination pointer via sprintf call