Fix my C Program - I2C read/write on EEPROM through BCM2711 SoC programming on Raspberry Pi 400

Job ID: 33115391

Budget: ₹1,500 – ₹12,500 INR

I have a C program that I downloaded from internet. It's for older Raspberry Pi 3.
I modified the program for Raspberry Pi 400 (as it has a different BCM chip).
But I can't read/write to my EEPROM. I can read write from my pigpio library program, so setup is correct.
Something wrong with code. I am attaching the files.