Charm fragmentation function—a comparison of neutrino ande+e− data