www.digitalmars.com         C & C++   DMDScript  

c++.dos - vsscanf

reply "tjulian" <tjulian removethis.oldi.com> writes:
I noticed that V8.39 has added the vscanf functions, but they are
missing from the DOS libraries. Will they be added?

--
TimJ
Feb 17 2004
parent reply "Walter" <walter digitalmars.com> writes:
"tjulian" <tjulian removethis.oldi.com> wrote in message
news:c0th75$131u$1 digitaldaemon.com...
 I noticed that V8.39 has added the vscanf functions, but they are
 missing from the DOS libraries. Will they be added?
I didn't put them in, as it didn't seem like anyone was developing with DOS anymore, but was just using it to compile old code.
Feb 17 2004
parent reply "tjulian" <tjulian removethis.oldi.com> writes:
Walter wrote:

 
 "tjulian" <tjulian removethis.oldi.com> wrote in message
 news:c0th75$131u$1 digitaldaemon.com...
 I noticed that V8.39 has added the vscanf functions, but they are
 missing from the DOS libraries. Will they be added?
I didn't put them in, as it didn't seem like anyone was developing with DOS anymore, but was just using it to compile old code.
Well, I am developing DOS/DOSX applications. Although the vscanf functions are not critical for me, I always hope DMC continues to keep the DOS compiler updated to the latest standards. -- TimJ
Feb 17 2004
parent reply "Walter" <walter digitalmars.com> writes:
"tjulian" <tjulian removethis.oldi.com> wrote in message
news:c0ttro$1ofg$1 digitaldaemon.com...
 Walter wrote:

 "tjulian" <tjulian removethis.oldi.com> wrote in message
 news:c0th75$131u$1 digitaldaemon.com...
 I noticed that V8.39 has added the vscanf functions, but they are
 missing from the DOS libraries. Will they be added?
I didn't put them in, as it didn't seem like anyone was developing with DOS anymore, but was just using it to compile old code.
Well, I am developing DOS/DOSX applications. Although the vscanf functions are not critical for me, I always hope DMC continues to keep the DOS compiler updated to the latest standards.
It's good to know someone is! (And you can add vscanf by just compiling the source for it on the CD and inserting it into the library.)
Feb 19 2004
parent "Gisle Vanem" <giva users.sourceforge.net> writes:
"Walter" <walter digitalmars.com> wrote:

 It's good to know someone is! (And you can add vscanf by just compiling the
 source for it on the CD and inserting it into the library.)
Speaking of ssanf/vscanf, this little program doesn't print *anything*. #include <stdio.h> #include <stdlib.h> int main (void) { char host[512], path[256]; sscanf ("some.host.com/foo/bar", "%512[^\n/?]%[^\n]", host, path); printf ("host `%s', path `%s'\n", host, path); return (0); } -------- It seems to parse beyond the input string or exit inside sscanf(). sscanf ("some.host.com/foo/bar\n"..) works as expexted, but why should the '\n' be required?
dmc scanf.c
link scanf,,,user32+kernel32/noi; with DMC 8.39 --gv
Feb 20 2004