I originally posted this question on math.stackexchange (https://math.stackexchange.com/questions/83182/modulus-of-continuity-take-2), but it's been a few days and I haven't received any correct answers.

Let $\rho: \mathbb{R}^+ \to \mathbb{R}^+$ be a continuous nondecreasing function such that $\rho(t) = 0$ if and only of $t = 0$. If you can answer my question in the special case $\rho(t) = Ct$ where $C$ is a constant then it will probably be possible to adapt your construction to the general case.

Say that a function $f: X \to \mathbb{R}$ on a metric space has *modulus of continuity $\rho$* at a point $x_0 \in X$ if $|f(x) - f(x_0)| \leq \rho(d(x,x_0))$ for every $x \in X$. For example, a function has modulus of continuity $Ct$ at $x_0$ if and only if it is Lipschitz with Lipschitz constant $C$ at $x_0$.

**Question** If $X$ is a compact metric space without isolated points, is it true that the set $S$ of all continuous functions on $X$ which have modulus of continuity $\rho$ at some point of $X$ is nowhere dense in $C(X)$ equipped with the supremum norm?

Note that the "some point" that I am referring to is not fixed and may depend on the function. The complement of $S$ is the set of all functions which do not have modulus of continuity $\rho$ at any point.

To prove that the answer is affirmative for a given $X$ one must be able to construct functions of arbitrarily small norm which oscillate arbitrarily rapidly. For example, if $\rho(t) = Ct$ and $X = [0,1]$ then one can use a piecewise linear function such that the slope of each linear piece is larger than $C$ in absolute value. However, I don't see how to generalize this idea to an arbitrary compact metric space without isolated points.