Ive used sprintf plenty of times, but here im useing it the the
argv[] array in a console prog.
char * texname;
int main(int argc, char **argv) {
if(argc < 2) {
cout << "You must specify the index\n";
exit(0);
}
sprintf(texname,"%s.jpg",argv[1]); //Crahs here
Im useing a simple .bat file to launch the prog, something like this
program.exe 0
It just crashes on that one line everytime.