Mail Archives: djgpp/1998/08/05/10:31:37
Mary Ellen Howitt <mhowitt AT mail DOT pris DOT bc DOT ca> wrote:
> Does anyone know if MsecClock has an equivalent in DJGPP or if
> vsscanf is in some c file out on the 'net? It was put in SOCK_PRN.C
> of the LIBTCP files.
Don't know about MsecClock, vsscanf will be in the next version of
DJGPP. In the meantime, you can define it yourself:
#include <stdio.h>
#include <stdarg.h>
#include <libc/file.h>
#include <libc/unconst.h>
int
vsscanf(const char *str, const char *fmt, va_list ap)
{
FILE _strbuf;
_strbuf._flag = _IOREAD|_IOSTRG;
_strbuf._ptr = _strbuf._base = unconst(str, char *);
_strbuf._cnt = 0;
while (*str++)
_strbuf._cnt++;
_strbuf._bufsiz = _strbuf._cnt;
return _doscan(&_strbuf, fmt, ap);
}
Hope this helps.
--
Groeten, Michel. http://www.cs.vu.nl/~mdruiter
____________
\ /====\ / "You know, Beavis, you need things that suck,
\/ \/ to have things that are cool", Butt-Head.
- Raw text -