[w3m-dev-en 00104] Re: snprintf (SunOS)

From: Ken Yap (ken@nlc.net.au)
Date: Mon Apr 03 2000 - 18:49:47 CDT


>Compiling w3m under SunOS 5.5.1 doesn't work, because curses doesn't know
>about the snprintf() function used in frame.c.
>
>snprintf() seems to be a GNU extension (well, my Linux man page says so...)
>
>In my infinite greenness I changed:
>- snprintf((f->set[i].body->name = GC_MALLOC_ATOMIC(j)), j,
>- "%s_%d", f->name, i);
>
>to:
>
>+ sprintf((f->set[i].body->name = GC_MALLOC_ATOMIC(j)),
>+ "%s_%d", f->name, i);
>
>which made w3m compile.
>
>May an experienced programmer decide, how to handle this correctly.

You can get a free snprintf from various places, I think the original
came from sendmail, but you can find it in beroftpd.



This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT