Re: Trouble in concatenate a value to a string

2013-10-29 Thread Magnus Fromreide
On Tue, 2013-10-29 at 18:51 +, Rafael Ratacheski wrote: > Hello, I'm having problem in concatenate the oid value in a > string. I've tried several possible ways, but all unsuccessfully. Can > you help me? My code is >From looking at your code it is unclear what type the buf argument is suppos

Trouble in concatenate a value to a string

2013-10-29 Thread Rafael Ratacheski
Hello, I'm having problem in concatenate the oid value in a string. I've tried several possible ways, but all unsuccessfully. Can you help me? My code is string print_ip(const void* buf, size_t buflen) { unsigned const char* bp = (unsigned const char*) buf; string returned("test:"); s