Comment incrémenter ceci 0x0100

Bonjour,¨

Je suis toujours bloqué avec ceci. Du moins j'ai une solution, mais j'en suis pas convaicnu.
Si vous pour m'en convaincre ou me dire comment vous le feriez mieux.

En résumé et pour rappel
Je defini la position des enregustrement longitude, latitude, altitude etc

// 24LC236
#define EPROM_COU 0x0001
#define EPROM_LON 0x0008 // 8 en dec
#define EPROM_LAT 0x0018 // 24 en dec
#define EPROM_ALT 0x0028 // 40 en dec
#define EPROM_TIM 0x0038 // 56 en dec
#define EPROM_VEL 0x0048 // 72 en dec
#define EPROM_STA 0x0058  // 88 en dec
#define EPROM_INC 0x0100  // Incrementation
unsigned int mask=0x0000;
const byte rom = 0x50;    // Address of 24LC256 eeprom chip
char data[15];

Puis en suite , je dois trouver un truc pour que lorsque la fonction GetGPS() est appelée la deuxieme fois, il enregistre ces positions aux positions incrémentée de 0x0100, par exemple

course à l'adresse 0x0101
lontitude à la position 0x0108
latitude à la position 0x0118
altitude à la position 0x0128
etc

Puis quand elle sera appelée la troisème fois, ca serait ca

course à l'adresse 0x0201
lontitude à la position 0x0208
latitude à la position 0x0218
altitude à la position 0x0228
etc

et aindi de suite

J'ai donc trouvé cette solution. Comme pourriez-vous faire mieux, comment feriez-vous

char cou[15];
char lon[15];
char lat[15];
char alt[15];
char time[14];
char vel[6];
char sta[2];

// 24LC236
#define EPROM_COU 0x0001
#define EPROM_LON 0x0008 // 8 en dec
#define EPROM_LAT 0x0018 // 24 en dec
#define EPROM_ALT 0x0028 // 40 en dec
#define EPROM_TIM 0x0038 // 56 en dec
#define EPROM_VEL 0x0048 // 72 en dec
#define EPROM_STA 0x0058  // 88 en dec

#define EPROM_INC 0x0100  // Incrementation
unsigned int mask=0x0000;
const byte rom = 0x50;    // Address of 24LC256 eeprom chip

setup(){
 Serial.begin(9600);
  Wire.begin ();
}

loop(){
GetGPS();
delay(60000);
}

GetGPS(){
          
          gps.getPar(lon,lat,alt,time,vel);

        // first time mask is egual to 0x0000 then it will be recorded at position 0x0001
        // next time , mask is equla to 0x0100, then it will be recorded at position 0x0101
        // next time, mask is equal t0 0x0200, then it will be recorded at position 0x0201
        writeEEPROM(rom,mask+EPROM_COU,cou); // No worries about the value of cou, it's work
       // EPROM_LON will inrement as for EPROM_COU, etc
        writeEEPROM(rom,mask+EPROM_LON,lon);
        writeEEPROM(rom,mask+EPROM_LAT,lat);
        writeEEPROM(rom,mask+EPROM_ALT,alt);
        writeEEPROM(rom,mask+EPROM_TIM,tim);
        writeEEPROM(rom,mask+EPROM_VEL,vel);
        writeEEPROM(rom,mask+EPROM_STA,sta); // No worries about the value of sta, it's work, it not my worries

       mask = mask+EPROM_INC;
       // Incrment mask as the folowing 0x0100, 0x0200, 0x0300, 0x0400 .... 0x1100, 0x1200.. etc

}

How would you to bette, to increment the 2 digit of the hexa.

Was I clear to undertand, my wories?