fp = cs + sizeof(*cs) + (to - cs->c_addr);
fp = (void *)cs + sizeof(*cs) + (to - cs->c_addr);
core_write(struct pstate *ps, off_t to, void *from, size_t size){	struct coreseg *cs;	size_t written;	void *fp;	int i;	for (i = 0; i < ps->ps_core->chdr->c_nseg; i++) {		cs = ps->ps_core->segs[i];		if ((to > cs->c_addr) && (to < (cs->c_addr + cs->c_size))) {			written = size;			fp = cs + sizeof(*cs) + (to - cs->c_addr);			memcpy(fp, from, written);			return (written);		}	}	return (-1);}