I'm building a simple slideshow and would like to exchange the FOR loop below into an infinite loop that will start over with picure 1 when picture 5 has been shown.
Im still new to C and I hope someone can help me
Making the infinite loop isnt very hard but I dont know how to access the array and start over when I reached nr 5.
Thank you!
Im still new to C and I hope someone can help me
Code:
char *inputFile[] = {"/1.jpg","/2.png","/3.jpg","/4.png","/5.png",NULL}; for(i=0; NULL != inputFile[i]; i++) { sprintf(max_image_file_path, DATADIR"%s", inputFile[i]); ... some code }
Thank you!
Comment