In my talk, I will speak about a recent study of charm fragmentation done at H1 experiment at DESY. After a brief introduction I will rescribe the measurement of the differential cross sections of D*± mesons as a function of two scaling variables zhem and zjet. These cross sections are used to extract free parameters of nonperturbative fragmentation functions for QCD based models. When the presence of a D*± jet with ET* > 3 GeV is required, the parameters extracted from the two distributions are in agreement, and agreement is also found with the value extracted from e+e– data by ALEPH. However, for the event sample without such a jet, significantly different parameters for the fragmentation functions are needed to describe the data.