You mean this?


sprintf(command, "rename %s_TypeA_%0*d %s_Base_%0*d.yuv\n",
videofile, i, sufix, videofile, i, sufix);