[olsr-dev] snprintf(), ...

Bernd Petrovitsch (spam-protected)
Mon Nov 7 10:56:52 CET 2005

On Mon, 2005-11-07 at 10:47 +0100, Thomas Lopatic wrote:
> [Bernd suggested to use snprintf() et al. instead of sprintf(), strcat(),
> ...]
> On Win32 olsrd uses msvcrt.dll, which ships with Windows, as its C
> library. I've just checked and the version on my system (XP Service Pack
> 2) has snprintf(), strncpy(), and strncat(). However, I am not sure since
> which Windows version these functions exist inside msvcrt.dll. So maybe
> we'd break compatibility with earlier Windows versions by using them. But
> then again, there should BSD-licensed source code available somewhere for
> them, which we could include with olsrd for platforms that do not support
> them natively.

A license compatible to the olsrd license is enough since the simple
integration is "put the source into the tree and add a #define for it".
I have to take a closer look into the Makefile to see what's the
simplest solution.

Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

More information about the Olsr-dev mailing list