Added snprintf() implementation