On Tue, 2013-10-29 at 18:51 +0000, 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 supposed to have. Could please state the actual type of the input arguments. Additionally the embedded debug code confuses the matter further as it converts to different types compared to the result generating functions. The impression I get from staring at your code for a while is that you meant: string print_ip(const char* buf, size_t buflen) { string returned("test:"); returned.reserve(returned.size() + buflen + buflen - 1); if (buflen > 0) { returned += buf[0]; for (size_t i = 1; i < buflen; ++i) { returned += '.'; returned += buf[i]; } } return returned; } but I have to admit that I can't fathom what you would need this function for. /MF ------------------------------------------------------------------------------ Android is increasing in popularity, but the open development platform that developers love is also attractive to malware creators. Download this white paper to learn more about secure code signing practices that can help keep Android apps secure. http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders