compress.c (1591) | compress.c (8874) |
---|---|
1/*- 2 * Copyright (c) 1992, 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 --- 70 unchanged lines hidden (view full) --- 79 char *p, newname[MAXPATHLEN]; 80 81 if ((p = rindex(argv[0], '/')) == NULL) 82 p = argv[0]; 83 else 84 ++p; 85 if (!strcmp(p, "uncompress")) 86 style = DECOMPRESS; | 1/*- 2 * Copyright (c) 1992, 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 --- 70 unchanged lines hidden (view full) --- 79 char *p, newname[MAXPATHLEN]; 80 81 if ((p = rindex(argv[0], '/')) == NULL) 82 p = argv[0]; 83 else 84 ++p; 85 if (!strcmp(p, "uncompress")) 86 style = DECOMPRESS; |
87 else if (!strcmp(p, "compress")) | 87 else if (!strcmp(p, "compress")) |
88 style = COMPRESS; 89 else 90 errx(1, "unknown program name"); 91 92 bits = cat = 0; 93 while ((ch = getopt(argc, argv, "b:cdfv")) != EOF) 94 switch(ch) { 95 case 'b': --- 349 unchanged lines hidden --- | 88 style = COMPRESS; 89 else 90 errx(1, "unknown program name"); 91 92 bits = cat = 0; 93 while ((ch = getopt(argc, argv, "b:cdfv")) != EOF) 94 switch(ch) { 95 case 'b': --- 349 unchanged lines hidden --- |