  Thanks to its excellent tracking and particle identification performance, the
ALICE detector is capable of measuring D mesons at central rapidity via their
hadronic decay channels down to very low transverse momentum. We show an
extension of the prompt ${\rm D}^0$ $p_{\rm T}$-differential cross section
measurement down to zero transverse momentum, which allows us to determine the
$p_{\rm T}$-integrated charm production cross section at central rapidity in pp
collisions at $\sqrt{s}$ = 7 TeV. We also present measurements of azimuthal
correlations of prompt ${\rm D}^0$, ${\rm D}^+$ and ${\rm D}^{*+}$ mesons with
charged hadrons in pp collisions at $\sqrt{s}$ = 7 TeV and p-Pb collisions at
$\sqrt{s_{\scriptscriptstyle \rm NN}}$ = 5.02 TeV and compare the results with
expectations from models.
