inv3.c (0:68f95e015346) inv3.c (719:6c26331bc6b8)
1/*
2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
5
1/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
2/* All Rights Reserved */
3
6/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
7/* All Rights Reserved */
8
4
5/*
6 * Copyright (c) 1980 Regents of the University of California.
7 * All rights reserved. The Berkeley software License Agreement
8 * specifies the terms and conditions for redistribution.
9 */
10
9/*
10 * Copyright (c) 1980 Regents of the University of California.
11 * All rights reserved. The Berkeley software License Agreement
12 * specifies the terms and conditions for redistribution.
13 */
14
11/*
12 * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
13 * All Rights Reserved.
14 */
15#pragma ident "%Z%%M% %I% %E% SMI"
15
16
16#pragma ident "%Z%%M% %I% %E% SMI"
17
18getargs(s, arps)
19char *s, *arps[];
17int
18getargs(char *s, char *arps[])
20{
21 int i = 0;
22
19{
20 int i = 0;
21
23 while (1)
24 {
22 while (1) {
25 arps[i++] = s;
23 arps[i++] = s;
26 while (*s != 0 && *s!=' '&& *s != '\t')
24 while (*s != 0 && *s != ' ' && *s != '\t')
27 s++;
28 if (*s == 0)
29 break;
30 *s++ = 0;
25 s++;
26 if (*s == 0)
27 break;
28 *s++ = 0;
31 while (*s==' ' || *s=='\t')
29 while (*s == ' ' || *s == '\t')
32 s++;
30 s++;
33 if (*s==0)
31 if (*s == 0)
34 break;
35 }
32 break;
33 }
36 return(i);
34 return (i);
37}
35}