CVS Caremark Corp posted a higher fourth-quarter profit that matched Wall Street's expectations, helped by growth in its pharmacy services and retail drugstore units.

CVS said on Thursday that it had earned $949.3 million, or 65 cents per share, compared with $811.2 million, or 55 cents per share, a year earlier.

The results matched the analysts' average forecast, according to Reuters Estimates.

Sales rose 10 percent to $24.14 billion at CVS, which runs more than 6,900 U.S. drugstores and is a major pharmacy benefits manager.

Sales at retail drugstores open more than one year rose 3.6 percent, CVS said. Pharmacy same-store sales were up 4.5 percent, but suffered from the introduction of generic medicines.

CVS bought Caremark, a major pharmacy benefits manager, in March 2007 as part of a strategy to diversify beyond the typical drugstore business.

In January, CVS issued a bleak 2009 forecast after it gave lower rates to more than half of its pharmacy benefit clients in order to lock in their contracts. At that time, Chief Executive Tom Ryan said CVS drugstores were doing remarkably well, given the recession's impact on consumer spending, but the company was seeing margin pressure in its pharmacy benefit manager business.

CVS had forecast 2009 net earnings of $2.35 to $2.43 per share and adjusted profit of $2.53 to $2.61, which includes the impact of the Longs acquisition but excludes other items.

(Reporting by Aarthi Sivaraman and Jessica Wohl; Editing by Lisa Von Ahn)