@copper: The solution given in the book is along the following lines:Given $\epsilon>0$, there is a $\delta, 0<\delta<1$, such that if $0<|x|<\delta$, then
$|f(1-x[1/x])|<\epsilon$. Taking $n$ so large as $1/n<\delta$. For $0<s<\frac 1{(n+1)}$, set $x=\frac {1-s}n$, then $\frac 1{n+1}<x<\frac 1n$. Thus $[1/x]=n$.
If $0<s<\frac 1{n+1}$, then $|f(s)|<\epsilon$. For $s<0$, one can proceed analogously.