Hi,
Ja ja, lang ist's her.
Wie ist das zu verstehen, ich meine ist das ein Pointer "->" also memfile.pos ?
Code:
int memread(void *buffer, int size, unsigned int
handle)
{
MEMFILE *memfile = (MEMFILE *)
handle;
if (memfile[color=#ff0000]->[/color]pos + size >= memfile->length)
size = memfile[color=#ff0000]->[/color]length - memfile->pos;
memcpy(buffer, (char *)memfile[color=#ff0000]->[/color]data+memfile[color=#ff0000]->[/color]pos, size);
memfile->pos += size;
return size;
}