snprintf test demo