xref: /original-bsd/old/refer/inv/inv3.c (revision e59fb703)
1 /*-
2  * %sccs.include.proprietary.c%
3  */
4 
5 #ifndef lint
6 static char sccsid[] = "@(#)inv3.c	4.2 (Berkeley) 04/18/91";
7 #endif /* not lint */
8 
9 getargs(s, arps)
10 char *s, *arps[];
11 {
12 	int i = 0;
13 
14 	while (1)
15 	{
16 		arps[i++] = s;
17 		while (*s != 0 && *s!=' '&& *s != '\t')
18 			s++;
19 		if (*s == 0)
20 			break;
21 		*s++ = 0;
22 		while (*s==' ' || *s=='\t')
23 			s++;
24 		if (*s==0)
25 			break;
26 	}
27 	return(i);
28 }
29