printenv.c (0da30e9aa76c5df66cd092f30b904824b0594ccc) printenv.c (1c8af8787354e20c2b38cab5801698133ff8b403)
1/*
2 * Copyright (c) 1987, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 52 unchanged lines hidden (view full) ---

61 int argc;
62 char *argv[];
63{
64 extern char **environ;
65 register char *cp, **ep;
66 register size_t len;
67 int ch;
68
1/*
2 * Copyright (c) 1987, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 52 unchanged lines hidden (view full) ---

61 int argc;
62 char *argv[];
63{
64 extern char **environ;
65 register char *cp, **ep;
66 register size_t len;
67 int ch;
68
69 while ((ch = getopt(argc, argv, "")) != EOF)
69 while ((ch = getopt(argc, argv, "")) != -1)
70 switch(ch) {
71 case '?':
72 default:
73 usage();
74 }
75 argc -= optind;
76 argv += optind;
77

--- 23 unchanged lines hidden ---
70 switch(ch) {
71 case '?':
72 default:
73 usage();
74 }
75 argc -= optind;
76 argv += optind;
77

--- 23 unchanged lines hidden ---