comparison src/message.c @ 715:b526e10493b1

updated for version 7.0217
author vimboss
date Tue, 07 Mar 2006 22:29:51 +0000
parents 0f9f4761ad9c
children 6beb2c667935
comparison
equal deleted inserted replaced
714:0f9f4761ad9c 715:b526e10493b1
3844 } 3844 }
3845 #endif 3845 #endif
3846 3846
3847 /* 3847 /*
3848 * This code was included to provide a portable vsnprintf() and snprintf(). 3848 * This code was included to provide a portable vsnprintf() and snprintf().
3849 * Some systems may provide their own, but we always use these for 3849 * Some systems may provide their own, but we always use this one for
3850 * consistency. 3850 * consistency.
3851 * 3851 *
3852 * This code is based on snprintf.c - a portable implementation of snprintf 3852 * This code is based on snprintf.c - a portable implementation of snprintf
3853 * by Mark Martinec <mark.martinec@ijs.si>, Version 2.2, 2000-10-06. 3853 * by Mark Martinec <mark.martinec@ijs.si>, Version 2.2, 2000-10-06.
3854 * Included with permission. It was heavely modified to fit in Vim. 3854 * Included with permission. It was heavely modified to fit in Vim.
3864 * 'll' (long long int) is not supported. 3864 * 'll' (long long int) is not supported.
3865 * 3865 *
3866 * The locale is not used, the string is used as a byte string. This is only 3866 * The locale is not used, the string is used as a byte string. This is only
3867 * relevant for double-byte encodings where the second byte may be '%'. 3867 * relevant for double-byte encodings where the second byte may be '%'.
3868 * 3868 *
3869 * It is permitted for str_m to be zero, and it is permitted to specify NULL 3869 * It is permitted for "str_m" to be zero, and it is permitted to specify NULL
3870 * pointer for resulting string argument if str_m is zero (as per ISO C99). 3870 * pointer for resulting string argument if "str_m" is zero (as per ISO C99).
3871 * 3871 *
3872 * The return value is the number of characters which would be generated 3872 * The return value is the number of characters which would be generated
3873 * for the given input, excluding the trailing null. If this value 3873 * for the given input, excluding the trailing null. If this value
3874 * is greater or equal to str_m, not all characters from the result 3874 * is greater or equal to "str_m", not all characters from the result
3875 * have been stored in str, output bytes beyond the (str_m-1) -th character 3875 * have been stored in str, output bytes beyond the ("str_m"-1) -th character
3876 * are discarded. If str_m is greater than zero it is guaranteed 3876 * are discarded. If "str_m" is greater than zero it is guaranteed
3877 * the resulting string will be null-terminated. 3877 * the resulting string will be null-terminated.
3878 */ 3878 */
3879 3879
3880 /* 3880 /*
3881 * When va_list is not supported we only define vim_snprintf(). 3881 * When va_list is not supported we only define vim_snprintf().