logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

nng_url_clone - clone URL structure

Description

       The nng_url_clone() makes a clone of the original URL structure orig, and saves the result in the
       location pointed by dup. This clone includes fully duplicating each of the member fields.

       The new nng_url structure can be disposed of using nng_url_free() when it is no longer needed.

Errors

       NNG_ENOMEM
           Insufficient free memory exists to duplicate a message.

Name

       nng_url_clone - clone URL structure

Return Values

       This function returns 0 on success, and non-zero otherwise.

See Also

nng_url_free(3), nng_url_parse(3), nng_strerror(3), nng_url(5), nng(7)

                                                   2025-04-20                                   NNG_URL_CLONE(3)

Synopsis

           #include <nng/nng.h>

           int nng_url_clone(nng_url **dup, nng_url *orig);

See Also