main function in c with arguments that are defined as definitions : i am currently trying to get arguments from the command line to my main function in c. my program is as follows.

    #include <stdio.h>
    #include <stdlib.h>

    #define BANK1 (0X00100)
    #define BANK2 (0x11010)
    .
    .
    #define BANKN (0xNNNNN)
    int write_to_bank(int bank, int value);

    int main(int argc, char **argv)
    {
    int a,v;
    a=strtol(argv[2],NULL,0);
    v=strtol(argv[3],NULL,0);
    write_to_bank(a,v);
        
    }
    
    int write_to_bank(int bank, int value){
    // some relevant code
    }

if i pass the arguments as follows the integers are correctly parsed to the function

    ./main 0x00100 0x20
    
but when i try to pass the arguments to my main function in the following way i am not actually parsing the right bank value 

    ./main BANK1 0x30
    
Is there any way i could pass the definition as an argument to my main functuion where c automatically translates the definition to the corresponding value and parses to the function argument.

-A.R