Let $f:N\to R^n$ be a locally Lipschitz function, where $N$ is an open subset of $R^n$. Let $K$ be a compact set in $N$. Prove that the restriction $f|_K$ of $f$ to $K$ is globally Lipschitz.
I just need to know how I can prove that if $f$ is locally Lipschitz, then $f$ is continuous on $N$ and hence it is also continuous on $K$.