X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilcutil%2Fsilcbuffmt.h;h=3ffc74991f7972a501b65809ab8a1a8c51272219;hp=86c155e3a7bb65cd143cfacafa3398b4db365c22;hb=c257b555225193e54d85daf541d29578b3c93882;hpb=f658940d02cf2fd893296b6a7825b42502573668 diff --git a/lib/silcutil/silcbuffmt.h b/lib/silcutil/silcbuffmt.h index 86c155e3..3ffc7499 100644 --- a/lib/silcutil/silcbuffmt.h +++ b/lib/silcutil/silcbuffmt.h @@ -1,10 +1,10 @@ /* - silcbuffmt.h + silcbuffmt.h Author: Pekka Riikonen - Copyright (C) 1997 - 2003 Pekka Riikonen + Copyright (C) 1997 - 2004 Pekka Riikonen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -122,14 +122,14 @@ int silc_buffer_unformat_vp(SilcBuffer src, va_list ap); * * Formats a buffer from variable argument list of strings. Each * string must be NULL-terminated and the variable argument list must - * be end with SILC_STR_END argument. This allows that a string in + * be end with SILC_STRFMT_END argument. This allows that a string in * the list can be NULL, in which case it is skipped. This automatically * allocates the space for the buffer data but `dst' must be already * allocated by the caller. * * EXAMPLE * - * ret = silc_buffer_strformat(buffer, "foo", "bar", SILC_STR_END); + * ret = silc_buffer_strformat(buffer, "foo", "bar", SILC_STRFMT_END); * if (ret < 0) * error; * @@ -292,7 +292,7 @@ typedef enum { * automatically. * * Example: - * + * * Formatting: ..., SILC_STR_UI_INT(strlen(string)), * SILC_STR_UI32_STRING(string), ... * Unformatting: ..., SILC_STR_UI32_STRING(&string), ... @@ -412,4 +412,18 @@ typedef enum { ***/ #define SILC_STR_END SILC_BUFFER_PARAM_END +/****d* silcutil/SilcBufferFormatAPI/SILC_STRFMT_END + * + * NAME + * + * #define SILC_STRFMT_END ... + * + * DESCRIPTION + * + * Marks end of the argument list in silc_buffer_strformat function. + * This must be at the end of the argument list or error will occur. + * + ***/ +#define SILC_STRFMT_END (void *)SILC_STR_END + #endif /* !SILCBUFFMT_H */