bradn@hammer.UUCP (Brad Needham) (07/19/84)
I was overzealous in saying that cparen would build under SysV. I believe that "rindex" is called "strrchr" under SysV. I have removed the reference to "rindex" from cparen. Here is a diff listing: ======= the following changes apply to cparen.c ========= 16c16 < static char *rcsid = "$Header: cparen.c,v 1.10 84/04/05 09:21:42 bradn Stable $"; --- > static char *rcsid = "$Header: cparen.c,v 1.11 84/07/19 09:08:30 bradn Exp $"; 25d24 < char *rindex(); 28,30c27,30 < if ((cmd = rindex(argv[0], '/'))) { < cmd++; < } else { --- > for (cmd = (char *) 0, cp = argv[0]; *cp; ++cp) { > if (*cp == '/') cmd = cp + 1; > } > if (!cmd) { ========================================================= I apologize for overstating cparen's portability. Thanks to Art Deacon for pointing out the problem. Brad