delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/05/10:31:37

From: mdruiter AT cs DOT vu DOT nl
Newsgroups: comp.os.msdos.djgpp
Subject: Re: HTGET.C
Date: 5 Aug 1998 14:15:23 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 34
Message-ID: <6q9pdr$fj$1@star.cs.vu.nl>
References: <199808050018 DOT RAA10223 AT mail DOT pris DOT bc DOT ca>
NNTP-Posting-Host: sloep09.cs.vu.nl
User-Agent: tin/pre-1.4-980730 (UNIX) (SunOS/5.5.1 (sun4u))
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019