[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MS VC6.0 gnokii DLL (WIN32 x86)
From: |
BORBELY Zoltan |
Subject: |
Re: MS VC6.0 gnokii DLL (WIN32 x86) |
Date: |
Wed, 12 Feb 2003 11:32:35 +0100 |
User-agent: |
Mutt/1.4i |
Hi,
On Wed, Feb 12, 2003 at 10:11:01AM +0100, Ladislav Michl wrote:
> (1) MSVC <stdio.h> contains this definition:
> int _snprintf( char *buffer, size_t count, const char *format, ...);
> _snprintf appears to be C99 compilant so what about
> #define HAVE_SNPRINTF 1
> #define HAVE_C99_SNPRINTF 1
> #define snprintf _snprintf
> instead of compiling our own snprintf?
The _snprintf function is horribly broken. If the buffer is smaller than
the string _snprintf won't terminate it (like strncpy) instead of the
C99 behaviour. It caused a lot of problem in the past.
> 1) why is windows library called gnokiid.dll
IMHO gnokii.dll (and gnokii.lib) should be a better name.
Bye,
Bozo