Why don't you just return std::string instead of char* ? Also you need to null terminate result1.
BoBok2002 commented: This post was helpful and well explained. I understood it clearly +2
babyhuyx commented: Amazing, Very Helpful, totally opened my mind to new way of coding +1
mrnutty 761 Senior Poster
Zvjezdan23 commented: Thank You so much for helping me. =) +0
mrnutty 761 Senior Poster