Most of the older slr's have a 'release' button. When you reach the end of the spool you click the release button and manually wind the film back into the can while stil in the camera. Then the can can be removed and placed in a container.
Best to remove the film can in subdued light not bright sunshine and get it into its container asap.
I would suggest searching the web for a user manual for your specific camera and read it