diff options
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*/ |