|
From: Gisle V. <gi...@bg...> - 2005-01-13 17:39:49
|
"John Gaughan" wrote:
> I gather you have different input requirements than what the Standard
> Library provides. So, essentially, you need to stick characters into an
> array from a character input function you specify. While the standard
> *scanf() functions do not provide this functionality, a wrapper function
> can.
Maybe I wasn't clear; I need to write an *interactive* version of scanf().
I.e. with my own getchar() replacement with echo. This is for a little
conio library (Borland style if anybody remembers that). So feeding a
buffer to fscanf/sscanf cannot be interactive AFAICS. Code like
rc = my_scanf ("%d",val);
should terminate on 1st non-digit returned from my input function.
Thanks you and Greg anyway. Looks like I have to borrow the whole
_doscan() from either djgpp, newlib or S-Lang.
--gv
|