s2c function

conversion of a string into a vector of chars