1 /*- 2 * Copyright (c) 1991 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Computer Consoles Inc. 7 * 8 * %sccs.include.proprietary.c% 9 */ 10 11 #ifndef lint 12 static char sccsid[] = "@(#)system_.c 5.2 (Berkeley) 04/12/91"; 13 #endif /* not lint */ 14 15 /* f77 interface to system routine */ 16 17 system_(s, n) 18 register char *s; 19 long int n; 20 { 21 char buff[1001]; 22 register char *bp, *blast; 23 24 blast = buff + (n<1000 ? n : 1000L); 25 26 for(bp = buff ; bp<blast && *s!='\0' ; ) 27 *bp++ = *s++; 28 *bp = '\0'; 29 system(buff); 30 } 31