I'm looking to replace a piece of code that writes and image file (bmp) with code to write a series of images, image1,image2,image3,image4...etc instead of overwriting the same image each time.
the file is referenced several times throughout the code, which is spread over 3 .c files which are compiled to one
my guess is to make a string, that has a counter in it, but I'm not sure how to do that exactly...
where # is an integer that I increment after writing the file.
how would I implement that?
and would I need to do anything special so that the string could be used in more than one .c file, but be incremented in one spot.