diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-17 22:39:41 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-17 22:39:41 -0800 |
| commit | e54e2b1a98abfdb75232a9b3218714ce34c9a34f (patch) | |
| tree | 3476bf1c917a686677f538b0bcb2f753934bfbc0 /src/nng.c | |
| parent | 6333c9cefb847231397128bb7b99f0055acd1632 (diff) | |
| download | nng-e54e2b1a98abfdb75232a9b3218714ce34c9a34f.tar.gz nng-e54e2b1a98abfdb75232a9b3218714ce34c9a34f.tar.bz2 nng-e54e2b1a98abfdb75232a9b3218714ce34c9a34f.zip | |
More url work. Undocument rawurl, and stop using it stats and logs.
Also expose nng_url_sprintf() for users who need it.
This avoids some need to do dynamic memory on some things. Soon
the entirety of nng_url will be allocation free in the usual case.
Diffstat (limited to 'src/nng.c')
| -rw-r--r-- | src/nng.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2038,6 +2038,12 @@ nng_url_clone(nng_url **dstp, const nng_url *src) return (nni_url_clone(dstp, src)); } +int +nng_url_sprintf(char *buf, size_t bufsz, const nng_url *src) +{ + return (nni_url_sprintf(buf, bufsz, src)); +} + #define xstr(a) str(a) #define str(a) #a |
