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:");
    string sp("");
    while (buflen--) {
        if (buflen == 0) {
            cout << static_cast<long> (*bp++);
            bp--;
            sp=static_cast<int> (*bp++);
            returned += sp;
        } else {
            cout << static_cast<long> (*bp++) << ".";
            bp--;
            sp=static_cast<int> (*bp++);
            returned += sp;
            returned += ".";
        }
    }
    puts("");
    cout << returned;
    return returned;
}
------------------------------------------------------------------------------
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

Reply via email to