Add a utility function to print longs to c-str

Add a simplied print function which can outperform snprintf at print
longs to a c-string.

This is requried since the cgv application does a *lot* of these prints
inside very tight loops.