Jerker Bäck wrote: > Hello Alan and thanks for answering > > OK, to make it more simple - this will also work and is maybe better: > > chunk_nread = cache_bread_1(abfd, (void*)((char*)buf + nread), chunk_size); What compiler are you using? What error message do you get? cheers, DaveK