Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
55 user(s) are online (41 user(s) are browsing Forums)

Members: 1
Guests: 54

saimo, more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Porting to AmigaOS4 thread

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

@Raziel

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