I'm wondering, can you make a pointer to a group of variables in an array? like this
array[20]{'a','b','c',...}
pointer = array[6 through 10];
so then you could say...
*pointer[0] == array[6];
and
*pointer[5] == array[10];
and the length of *pointer
5 == sizeof(*pointer) \ sizeof(type);
OK
Let me explain what I'm trying to accomplish, maybe that will clear me up a bit. I want to read a full file into a buffer, but I want to do it piece by piece. passing a small array into read() and then looping it into the larger array defeats the purpose. I was hoping that I could directly 'point' to an area in the buffer I want to fill, and pass that to the read() function.
I DO NOT want to use streams or anything that buffers behind my back
that would be counterproductive as I'm trying read the whole file into memory at once. As fast as possible.