Char * to std::string

I have a function :

Char* getlowestnumber(char* str, int n)
{
......
}

I have to convert str from type char* to std::string to perform some string operations.

I tried a lot of things but I couldn't. Do help me out.