US stocks have ended slightly higher, with the S&P 500 inching closer to its all-time high following a string of mostly positive earnings, while a drop in healthcare shares limited the advance.

US stocks have ended slightly higher, with the S&P 500 inching closer to its all-time high following a string of mostly positive earnings, while a drop in healthcare shares limited the advance.