If $k$ is continuously differentiable, then there is a simple approach:
$$\frac{\partial}{\partial x} \left ( k \frac{\partial c}{\partial x} \right ) = k'(x) \frac{\partial c}{\partial x} + k(x) \frac{\partial^2 c}{\partial x^2}.$$
Now you can discretize these two spatial derivatives as you see fit.
More generally, it is better to think about fluxes. (Indeed it is essential to think about fluxes in hyperbolic problems like the transport and wave equations, even though it is not so crucial in parabolic problems like the diffusion equation.) Consider a point $x$ on the line with neighbors $x-\Delta x$ and $x+\Delta x$. The flux balance at this point over a time step of length $\Delta t$ should look like this:
\begin{align}
x-\Delta x \to x & : k(x-\Delta x/2) \Delta t c(x-\Delta x) \\
x \to x-\Delta x & : k(x-\Delta x/2) \Delta t c(x) \\
x \to x+\Delta x & : k(x+\Delta x/2) \Delta t c(x) \\
x+\Delta x \to x & : k(x+\Delta x/2) \Delta t c(x+\Delta x)\end{align}
(plus corrections of higher order, of course).
This would give the ODE form
$$\frac{\partial c}{\partial t}(t,x)=k(x-\Delta x/2)c(t,x-\Delta x)+k(x+\Delta x/2)c(t,x+\Delta x) \\
-c(t,x)(k(x-\Delta x/2)+k(x+\Delta x/2)).$$
If $k$ is continuous then this will work, though it could be slow if $k$ is especially irregular. If $k$ is not even continuous, then you must be even more careful than this, and will need to write down a weak formulation of the problem in order to write down a sensible method.