
30 Jun
2005
30 Jun
'05
6:54 p.m.
Wow.... This surprises me... I have alwayts thought that *test and test[] would be the same thing.
Only solutionI can see is to change the definition in common.c to be *test, this will still get the address of test[] defined elsewhere. (See attached files)
Sure, I've tried this. This is the point, where my problem arose. Attached you find two small files, you can easily compile under linux (gcc -o arrtest -I ./ ./common.c ./array.c). The file "common.c" represents the code I can't (don't want to) touch. "array.c" represents my project dependent code. If you run arrtest it will show to you,