Thankyou Tim.
Robby <Robby@discussions.microsoft.com> wrote:
Thanks Igor!
Igor, I am stuck with a C coding dilema because of something I didn't think
of.
I will try to solve it ... hopefully I can get it to work... if not I will
post it.
Well, you can certainly do this by starting a new block:
int main()
{
abc *tx;
tx = malloc (sizeof (struct tag_xxx));
free(tx);
{
lb_table lb_dct1arr[] = { //<<< error points here!!!!
{ 0, 0, 0, 0, 0},
{ 181, 182, 183, 184, 0},
{ 185, 184, 183, 0, 0},
};
// Use lb_dct1arr here
}
return 0;
}
Remember, however, that the compiler has to generate code to build this
array when the function starts. For main it doesn't matter so much, but
for other functions, the array would get recreated in code every time you
call the function. Compare this to static or global arrays.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.