Naveenk.wins
Newbie level 4
hi,
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];"
can any one help in how to do this?
Its very urgent i have a release by end of day...
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];"
can any one help in how to do this?
Its very urgent i have a release by end of day...