some question about snprintf