The given equation of a line is y=mx+c, where m and c are constants, and the equation of a curve is xy=16. Given that the line is a tangent to the curve, express m in terms of c.