adding incremented integers to end of char array. C -


i'm trying make char array in "c" have integer value @ end of array. i'm trying change integer value while going through loop.

system("mv " + file_list[loca] + " /media/mybook1tb/" + folderint);  file_list[n][200] // char array of file locations folderint //  folder increment variable example "/media/mybook1tb/0" "/media/mybook1tb/1" 

i'm not sure if c.str() work put in system() above.

i couldn't find on cplusplus website. help?

i'm trying not use string library..

char system_string[large_comfortable_num];  sprintf(system_string,"mv %s /media/mybook1tb/%d",file_list[loca],folderint);  system(system_string); 

Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -