From 711594636704defae873be1a355a292505585afd Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 25 Apr 2026 21:07:28 -0400 Subject: docs: Added UNIX V10 Manuals --- static/v10/man3/switch.3 | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 static/v10/man3/switch.3 (limited to 'static/v10/man3/switch.3') diff --git a/static/v10/man3/switch.3 b/static/v10/man3/switch.3 new file mode 100644 index 00000000..c6ccccbc --- /dev/null +++ b/static/v10/man3/switch.3 @@ -0,0 +1,44 @@ +.pa 1 +.he 'SWITCH (III)'3/15/72'SWITCH (III)' +.ti 0 +NAME switch -- switch on value +.sp +.ti 0 +SYNOPSIS (switch value in r0) +.br +jsr r5,switch; swtab +.br +(not-found return) +.br +.li +... +.ti -7 +swtab: val1; lab1; +.br +.li +... +.br +valn; labn +.br +.li +..; 0 +.sp +.ti 0 +DESCRIPTION switch______ +compares the value of r0 against each of the val\di\u; if +a match is found, control is transferred to the corresponding +lab\di\u (after popping the stack once). +If no match has been found by the time a null lab\di\u +occurs, switch______ returns. +.sp +.ti 0 +FILES kept in /lib/liba.a +.sp +.ti 0 +SEE ALSO -- +.sp +.ti 0 +DIAGNOSTICS -- +.sp +.ti 0 +BUGS -- -- cgit v1.2.3