单项选择题

设f′(cosx)=sinx,则f(cosx)等于()

A.-cosx+c
B.cosx+c
C.1/2(sin2x/2-x)+c
D.1/2(2sin2x-x)+c