Added snprintf

snprintf function