Steve Church

local allocation of array and external reference to it

Discussion created by Steve Church on Jun 19, 2007
Latest reply on Jun 26, 2007 by Paul McConkey
I'm not too experienced at C yet and have a question on (possibly) the use of pointers and arrays. I wish to allocate a temporary area of memory in a routine to hold 256 bytes of data. I then wish to access this block of memory in another routine called from this routine. I cant quite get my head around what is required to do this. Could someone help me out here, please?

I'm using an 8 bit uP (9S08RE16) and want to use the RAM space efficiently so want to have this 256 bytes available for use later in the program.

Steve

Outcomes