updated C strings section and added sample code for functions