> I am writing a C program that uses gets to read a password.
>
> The intrinsic FCONTROL with an item number of 13 should work,
> but I don't know where to find the file number of the keyboard.
>
> Help
> Marilyn
This is from some old C code that I haven't tried in a while, but
it _should_ work..
#pragma intrinsic FCONTROL hp_fcontrol
#define HP_FILENO(x) _mpe_fileno(fileno(x))
void TermEchoOff()
{
/* Local Variables */
short old_echo;
/* Code */
hp_fcontrol(HP_FILENO(stdin),13,&old_echo);
}
**-------------------------+---------------------------**
|James Bennett | Phone: 916.891.5281 |
|Bi-Tech Software, Inc | Fax : 916.891.5011 |
|1072 Marauder, Suite A | EMail: [log in to unmask] |
|Chico, CA 95926 | "If it was easy, anyone |
| | could do it." |
**-------------------------+---------------------------**