http://mathworld.wolfram.com/Circle-LineIntersection.html has a formula for circle line intersection, with the line being infinite. You could use that, and if there's intersection, check if at least one of the intersection points lies between the end points of your line segment.