Adding snprintf

Only %d and %s for now
Use standard type names where appropriate