expand.c (b9f2f8c36f23f48488e9f8ae2b018d3fa6c3a44b) | expand.c (aeb5d065044ee6733a7fee14edb52959a28c1ab4) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1997-2005 5 * Herbert Xu <herbert@gondor.apana.org.au>. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Kenneth Almquist. --- 1578 unchanged lines hidden (view full) --- 1587{ 1588 size_t len; 1589 int i; 1590 1591 out1fmt("%08x", argc - 1); 1592 for (i = 1, len = 0; i < argc; i++) 1593 len += strlen(argv[i]); 1594 out1fmt("%08x", (int)len); | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * Copyright (c) 1997-2005 5 * Herbert Xu <herbert@gondor.apana.org.au>. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Kenneth Almquist. --- 1578 unchanged lines hidden (view full) --- 1587{ 1588 size_t len; 1589 int i; 1590 1591 out1fmt("%08x", argc - 1); 1592 for (i = 1, len = 0; i < argc; i++) 1593 len += strlen(argv[i]); 1594 out1fmt("%08x", (int)len); |
1595 for (i = 1; i < argc; i++) { 1596 out1str(argv[i]); 1597 out1c('\0'); 1598 } | 1595 for (i = 1; i < argc; i++) 1596 outbin(argv[i], strlen(argv[i]) + 1, out1); |
1599 return (0); 1600} | 1597 return (0); 1598} |