diff options
author | djm@openbsd.org <djm@openbsd.org> | 2020-01-25 00:54:40 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2020-01-25 01:27:29 +0100 |
commit | 8075fccbd4f70a4371acabcfb47562471ff0de6f (patch) | |
tree | e8e16278bb3aa2eb8d124290c1495d0fd2140ca9 /misc.h | |
parent | upstream: minor tweaks to ssh-keygen -Y find-principals: (diff) | |
download | openssh-8075fccbd4f70a4371acabcfb47562471ff0de6f.tar.xz openssh-8075fccbd4f70a4371acabcfb47562471ff0de6f.zip |
upstream: add xextendf() to extend a string with a format
(reallocating as necessary). ok aja@ as part of a larger diff
OpenBSD-Commit-ID: 30796b50d330b3e0e201747fe40cdf9aa70a77f9
Diffstat (limited to 'misc.h')
-rw-r--r-- | misc.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: misc.h,v 1.83 2020/01/23 07:10:22 dtucker Exp $ */ +/* $OpenBSD: misc.h,v 1.84 2020/01/24 23:54:40 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> @@ -69,6 +69,8 @@ long convtime(const char *); char *tilde_expand_filename(const char *, uid_t); char *percent_expand(const char *, ...) __attribute__((__sentinel__)); char *tohex(const void *, size_t); +void xextendf(char **s, const char *sep, const char *fmt, ...) + __attribute__((__format__ (printf, 3, 4))) __attribute__((__nonnull__ (3))); void sanitise_stdfd(void); void ms_subtract_diff(struct timeval *, int *); void ms_to_timeval(struct timeval *, int); |