diff options
author | Werner Koch <[email protected]> | 2009-08-25 20:19:37 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2009-08-25 20:19:37 +0000 |
commit | 24e5a68f9e8e4bfdf10b4e5262b2a5fac2712291 (patch) | |
tree | e86141da64b2bb527414806acd0616f5d09d42e5 /jnlib/stringhelp.h | |
parent | * gpg.text: Suggested new ordering for --edit-key. (diff) | |
download | gnupg-24e5a68f9e8e4bfdf10b4e5262b2a5fac2712291.tar.gz gnupg-24e5a68f9e8e4bfdf10b4e5262b2a5fac2712291.zip |
New fucntions strconcat and xstrconcat.
Diffstat (limited to 'jnlib/stringhelp.h')
-rw-r--r-- | jnlib/stringhelp.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/jnlib/stringhelp.h b/jnlib/stringhelp.h index 32150f7de..4cd81a1af 100644 --- a/jnlib/stringhelp.h +++ b/jnlib/stringhelp.h @@ -1,6 +1,6 @@ /* stringhelp.h * Copyright (C) 1998, 1999, 2000, 2001, 2003, - * 2006, 2007 Free Software Foundation, Inc. + * 2006, 2007, 2009 Free Software Foundation, Inc. * * This file is part of JNLIB. * @@ -124,4 +124,13 @@ char *percent_escape (const char *str, const char *extra); char *try_percent_escape (const char *str, const char *extra); +/* Concatenate the string S1 with all the following strings up to a + NULL. Returns a malloced buffer with the new string or NULL on a + malloc error or if too many arguments are given. */ +char *strconcat (const char *s1, ...) GNUPG_GCC_A_SENTINEL(0); +/* Ditto, but die on error. */ +char *xstrconcat (const char *s1, ...) GNUPG_GCC_A_SENTINEL(0); + + + #endif /*LIBJNLIB_STRINGHELP_H*/ |