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