We prove that an approximately convex function on an open subset of an Asplund space is generically Fréchet differentiable, as are genuine convex functions. Thus, we give a positive answer to a question raised by S. Rolewicz. We also prove a more general result of that type for regular functions on an open subset of an Asplund space.