i was just wondering which is correct:

a function f is defined on an interval I is contonuous if lim as x->c for f(x) is f(c) for all x in I or for all c in I.

i thought it should be the former but the book that im reading states that its the latter.

thanks