I have an operation in my programm where i have to copy parts of a pointer pointing to an array of chars into another char at another pointers address.
However this just copies the whole string into the other array but i just want the first 4 characters of pEXIF->DateTimeOriginal stored into pEXIF->Year.
for (int a = 0; a <= 3; a++)
pEXIF->Year[a] = pEXIF->DateTimeOriginal[a];
I'm not that firm in pointer stuff so I hope one of you has a tip for me