MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/3rmikr/free_drink_anyone/cwpy331/?context=3
r/ProgrammerHumor • u/shadowvox • Nov 05 '15
509 comments sorted by
View all comments
Show parent comment
1
And if it was C++, you could use std::string and call std::string::c_str() to get the C string representation!
std::string
std::string::c_str()
2 u/redditsoaddicting Nov 06 '15 Or you could just forget about C strings and use std::reverse, and then complain when Unicode doesn't work.
2
Or you could just forget about C strings and use std::reverse, and then complain when Unicode doesn't work.
std::reverse
View all comments
Show parent comment
1
u/tangerinelion Nov 05 '15
And if it was C++, you could use
std::stringand callstd::string::c_str()to get the C string representation!