Somehow I always knew we could continue a smooth real function to a larger domain uniquely. I can't seem to find such a result however and I am probably confusing it with the analytic continuation of a complex function. Thinking about this I am growing more and more convinced that the smooth continuation of a real function is not unique. For example I think I vaguely recall that in functional analysis we could construct multiple different functions, all of which had some desired asymptotic properties at infinity. Of course this is just on the level of intuition, but it seems to contradict the uniqueness of the continuation. Anyway, better to ask and be sure, so I should do this (somewhat) clearly...
Given intervals $A\subset B\subset\mathbb{R}$ and a smooth function $f:A\longrightarrow\mathbb{R}$, can we find a smooth function $g:B\longrightarrow\mathbb{R}$, such that $g$ is unique and $g|_A=f$?