<div dir="ltr"><a href="https://retrocomputing.stackexchange.com/q/4965/4025">https://retrocomputing.stackexchange.com/q/4965/4025</a><div dir="auto"></div>
<div><p style="margin:0px 0px 1em;padding:0px;border:0px;font-variant-numeric:inherit;font-stretch:inherit;line-height:inherit;vertical-align:baseline;clear:both"><br>In the UNIX V7 version of the C language, there were the /\ (min) and the \/ (max) operators. In the source of the scanner part of the compiler,<br><br>case BSLASH:<br>    if (subseq('/', 0, 1))<br>        return(MAX);<br>    goto unkn;<br><br>case DIVIDE:<br>    if (subseq('\\', 0, 1))<br>        return(MIN);<br>...<br><br>However, attempting to use them reveals that the corresponding part in the code generator is missing. Trying to compile<br><br>foo(a, b) { return a \/ b; }<br><br>results in<br><br>1: No code table for op: \/<br><br>The scanner piece survived in the copies of the compiler for various systems for several years. I tried to look for copies of the code generator table which would contain an implementation, but failed. Has anyone ever seen a working MIN/MAX operator in K&R C?<br><br>Thanks,<font color="#242729" face="Arial, Helvetica Neue, Helvetica, sans-serif"><span style="font-size:15px">Leo</span></font></p></div></div>