Browse Source

Suggest better types in examples; from NetBSD

OPENBSD_3_2
miod 22 years ago
parent
commit
6819b734ce
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/lib/libc/stdlib/getopt.3

+ 2
- 2
src/lib/libc/stdlib/getopt.3 View File

@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: getopt.3,v 1.16 2002/02/23 19:54:29 miod Exp $
.\" $OpenBSD: getopt.3,v 1.17 2002/08/19 22:29:52 miod Exp $
.\" .\"
.Dd April 19, 1994 .Dd April 19, 1994
.Dt GETOPT 3 .Dt GETOPT 3
@ -236,7 +236,7 @@ It is provided for backward compatibility
.Em only . .Em only .
The following code fragment works in most cases. The following code fragment works in most cases.
.Bd -literal -offset indent .Bd -literal -offset indent
int length;
long length;
char *p; char *p;
while ((c = getopt(argc, argv, "0123456789")) != -1) { while ((c = getopt(argc, argv, "0123456789")) != -1) {


Loading…
Cancel
Save