The Cantor function is a standard example of a function $f:[0,1]\to\mathbb{R}$ that is continuous, has almost everywhere zero derivative, and nonetheless is not constant. More specifically, the number of points in which it is not differentiable is uncountable (with the cardinality of the continuum).
I'm trying to get a better understanding of which features allow it to not be constant while still satisfying $f'(x)=0$ almost everywhere in a compact set.
I've seen a comment in this answer hinting at the fact that if a continuous function is differentiable with zero derivative in all but a countable number of points, then it must be constant. This would indicate that the uncountable number of non-differentiable points is indeed a crucial feature of the Cantor function (certainly not surprising, but still not obvious). The post Is the set of non-differentiable points for a singular continuous function nowhere dense? also seems highly relevant, but I can't parse the answer enough to figure out whether it addresses my particular point.
However, that comment cites a link that seems to be broken, and I haven't found this statement mentioned in other places. Is this true? If so, how would I prove it?