AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

GETOPT (3C) } SEE ALSO getopt(l). errfig++; else afig++; break; case 'b': if (afig) errfig++; else bproc( ); break; case 1f1: ifile = optarg; break; case 'o': ofile = optarg; bufsiza = 512; break; case 111: errfig++; } if ( errfig) { fprintf (stderr, "usage: . . . "); exit (2); } for ( ; optind < argc; optind++) { if (access (argv[optind], 4)) { - 2- GETOPT (3C)

GETP ASS ( 3C ) GETP ASS ( 3C ) NAME getpass - read a password SYNOPSIS char •getpass (prompt) char *prompt; DESCRIPTION Getpass reads up to a newline or EOF from the file J dev /tty, after prompting on the standard error output with the nullterminated string prompt and disabling echoing. A pointer is returned to a null-terminated string of at most 8 characters. If / dev /tty cannot be opened, a NULL pointer is returned. An interrupt will terminate input and send an interrupt signal to the calling program before returning. FILES /dev/tty SEE ALSO crypt(3C). WARNING The above routine uses , which causes it to increase the size of programs, not otherwise using standard 1/0, more than might be expected. BUGS The return value points to static data whose content is overwritten by each call. - 1 -

GETOPT (3C)<br />

}<br />

SEE ALSO<br />

getopt(l).<br />

errfig++;<br />

else<br />

afig++;<br />

break;<br />

case 'b':<br />

if (afig)<br />

errfig++;<br />

else<br />

bproc( );<br />

break;<br />

case 1f1:<br />

ifile = optarg;<br />

break;<br />

case 'o':<br />

ofile = optarg;<br />

bufsiza = 512;<br />

break;<br />

case 111:<br />

errfig++;<br />

}<br />

if ( errfig) {<br />

fprintf (stderr, "usage: . . . ");<br />

exit (2);<br />

}<br />

for ( ; optind < argc; optind++) {<br />

if (access (argv[optind], 4)) {<br />

- 2-<br />

GETOPT (3C)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!