i have the following definition in a dev.c
const char *Device_Name_a[4] =
{
"Dev0",
"Dev1",
"Dev2",
"Dev3",
};
and in handle.c i have used the above information like this
extern const char *Device_Name_a[];
char *device = Device_Name_a[0];
This is working fine
I need to replace the above using, get_device_name function.
my goal is get the variable(device name) which is declared globally using get function instead of "char *device = Device_Name_a[0];"