Hi, thanks for the reply.
I did use pointers in the end.
Also the reason I am using global values is that as I am programming hardware....
There are some values that I would need to use over and over again.
Thanks
green.
User Profile
Collapse
-
vc++ 6.0 extern values in global.c/global.h file gets corrupted after use
Hi All,
Ok here we go;
I have a global.h file with a extern char glb_holder[50];
+ global.c with char glb_holder[50];
now I have ;
(one.c)
thenCode:global.h void doWork (void) { unsigned char data[30]; // data gets value memcpy(glb_holder, data, 30); }
(two.c)...
No activity results to display
Show More
Leave a comment: