xref: /titanic_50/usr/src/cmd/refer/inv3.c (revision 554ff184129088135ad2643c1c9832174a17be88)
1 /*	Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T	*/
2 /*	  All Rights Reserved  	*/
3 
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 
11 /*
12  * Copyright (c) 1983, 1984 1985, 1986, 1987, 1988, Sun Microsystems, Inc.
13  * All Rights Reserved.
14  */
15 
16 #pragma ident	"%Z%%M%	%I%	%E% SMI"
17 
18 getargs(s, arps)
19 char *s, *arps[];
20 {
21 	int i = 0;
22 
23 	while (1)
24 	{
25 		arps[i++] = s;
26 		while (*s != 0 && *s!=' '&& *s != '\t')
27 			s++;
28 		if (*s == 0)
29 			break;
30 		*s++ = 0;
31 		while (*s==' ' || *s=='\t')
32 			s++;
33 		if (*s==0)
34 			break;
35 	}
36 	return(i);
37 }
38