Displaying 1 result from an estimated 1 matches for "longsec".
Did you mean:
logsec
2003 Jul 19
1
A patch to man to handle "man.1"...
...to also handle the syntax of "man man.1":
--- man_old/man.c Sat Jul 19 17:17:13 2003
+++ man/man.c Sat Jul 19 18:08:23 2003
@@ -149,6 +149,8 @@
void do_apropos ();
void do_whatis ();
int man ();
+ int arglength = 0;
+ int i;
prognam = mkprogname (argv[0]);
longsec = NULL;
@@ -200,6 +202,23 @@
continue;
}
+
+ /* handle a section specified as "man.1" */
+ arglength = strlen(nextarg);
+
+ for (i = arglength; i > 0 ; i--) {
+ if (nextarg[i] == '.') {
+ tmp = is_section (&(nextarg[i + 1]...