I am studying Fourier Series and in it, the fact that $C^0 (\mathbb{T})$ or $C^\infty (\mathbb{T})$ is dense(in the $L^p(\mathbb{T})$ norm, i.e. integral restricted to the domain with one period) in $L^p(\mathbb{T})$ where $1\le p <\infty$ and $\mathbb{T}$ denotes the space of functions on the real line with period $1$(or any real number). However, I can't find a reference which states this fact, all I can find is that $C_c (\mathbb{R}^n)$ is dense in $L^p (\mathbb{R}^n)$ but I don't think this fact implies the above.
For instance, in the below proof of the Riemann-Lebesgue lemma for periodic functions, approximation with $C^0(\mathbb{T})$ functions is used.
