Remember me

Lost Password?

Register now!
Who's Online
43 user(s) are online (27 user(s) are browsing Forums)

Members: 0
Guests: 43

Support us!
Recent OS4 Files
Report message:*

Re: Porting to AmigaOS4 thread

Subject: Re: Porting to AmigaOS4 thread
by Capehill on 2019/10/6 17:49:11


Right, so "p" is an reference (&) to a String object that exists in Common namespace (Common::String). When it comes to C++ objects, typically we can only "print" their address using %p, but as we can see in the same function, Common::String has a similar member function than normal std::string, called c_str() that apparently returns a C string that lives inside the object. So you can use something like

printf("String: %s\n", p.c_str());
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project