version 1.14 | | version 1.15 |
---|
| | |
/* | | /* |
* static char *rcsid_porting_c = | | * static char *rcsid_porting_c = |
* "$Id: porting.c,v 1.14 2002/09/07 05:55:18 mwedel Exp $"; | | * "$Id: porting.c,v 1.15 2002/09/24 06:34:59 mwedel Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
} | | } |
#endif | | #endif |
| | |
| | #if !defined(HAVE_SNPRINTF) |
| | |
| | int snprintf(char *dest, int max, const char *format, ...) |
| | { |
| | va_list var; |
| | int ret; |
| | |
| | va_start(var, format); |
| | ret = vsprintf(dest, format, var); |
| | va_end(var); |
| | if (ret > max) abort(); |
| | |
| | return ret; |
| | } |
| | #endif |
| | |
| | |
/* This takes an err number and returns a string with a description of | | /* This takes an err number and returns a string with a description of |
* the error. | | * the error. |