/* returns the address of the first occurrence of  */
void* memscan(void *addr, int c, size_t size)
/* returns the address of the first occurrence of  */
void* memscan(void *addr, int c, size_t size)
{
	unsigned char *p = addr;
	while (size) {
		if (*p == c)
			return (void *)p;
		p++;
		size--;
	}
  	return (void *)p;
}