Implement ltoa and puts functions