void func ( unsigned char * some_ptr ) { char buf [40]; std::string str; str = "some words "; sprintf ( buf, "%i", *(some_ptr) ); str += buf; }