Comparison of light quark and charm quark fragmentation