Robert Ryan wrote: > ".....treat buffer as an array buffer[ character_position ]", > can you explain this buffer; are you just using buffer to mean temp; as in > temp memory > thanks > bob ryan > > Christopher Carver <[EMAIL PROTECTED]> wrote: > I'm not going to provide source, but here are two ways to traverse a > string which might get you going in the right direction. > > char *buffer = "Hello"; > char *buffer_ptr; > buffer_ptr = buffer;
IMO, both are incorrect terminology and causes all sorts of confusion. Viewing all memory (allocated or not) as one big chunk, or Block, of usable temporary data storage is a much more correct view. Memory has no notion of "buffers" and "arrays". From Safe C++ Design Principles. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
