<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I took the liberty of cross posting this earlier to TUHS and I got <div class="">an authoritative answer :)<div class="">-Larry</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">Begin forwarded message:</div><br class="Apple-interchange-newline"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Ken Thompson <<a href="mailto:ken@google.com" class="">ken@google.com</a>><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class=""><b class="">Re: [TUHS] Fwd: [Simh] An abandoned piece of K&R C</b><br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">2017, November 3 at 2:30:08 PM EDT<br class=""></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" class=""><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif; color:rgba(0, 0, 0, 1.0);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, Helvetica Neue, Helvetica, sans-serif;" class="">Lawrence Stewart <<a href="mailto:stewart@serissa.com" class="">stewart@serissa.com</a>><br class=""></span></div><br class=""><div class=""><div class="">it's news to me.<br class=""><br class=""><br class="">On Fri, Nov 3, 2017 at 5:53 AM, Lawrence Stewart <<a href="mailto:stewart@serissa.com" class="">stewart@serissa.com</a>> wrote:<br class=""><blockquote type="cite" class="">This caught my attention.  Did early C really have min and max?  Were they<br class="">used for anything?  In those days I was a BCPL user, which IIRC, did not<br class="">have such things.<br class=""><br class="">-Larry<br class=""><br class="">Begin forwarded message:<br class=""><br class="">From: Leo Broukhis <<a href="mailto:leob@mailcom.com" class="">leob@mailcom.com</a>><br class="">Subject: [Simh] An abandoned piece of K&R C<br class="">Date: 2017, November 3 at 1:14:42 AM EDT<br class="">To: "<a href="mailto:simh@trailing-edge.com" class="">simh@trailing-edge.com</a>" <<a href="mailto:simh@trailing-edge.com" class="">simh@trailing-edge.com</a>><br class=""><br class=""><a href="https://retrocomputing.stackexchange.com/q/4965/4025" class="">https://retrocomputing.stackexchange.com/q/4965/4025</a><br class=""><br class=""><br class="">In the UNIX V7 version of the C language, there were the /\ (min) and the \/<br class="">(max) operators. In the source of the scanner part of the compiler,<br class=""><br class="">case BSLASH:<br class="">    if (subseq('/', 0, 1))<br class="">        return(MAX);<br class="">    goto unkn;<br class=""><br class="">case DIVIDE:<br class="">    if (subseq('\\', 0, 1))<br class="">        return(MIN);<br class="">...<br class=""><br class="">However, attempting to use them reveals that the corresponding part in the<br class="">code generator is missing. Trying to compile<br class=""><br class="">foo(a, b) { return a \/ b; }<br class=""><br class="">results in<br class=""><br class="">1: No code table for op: \/<br class=""><br class="">The scanner piece survived in the copies of the compiler for various systems<br class="">for several years. I tried to look for copies of the code generator table<br class="">which would contain an implementation, but failed. Has anyone ever seen a<br class="">working MIN/MAX operator in K&R C?<br class=""><br class="">Thanks,Leo<br class=""><br class="">_______________________________________________<br class="">Simh mailing list<br class="">Simh@trailing-edge.com<br class="">http://mailman.trailing-edge.com/mailman/listinfo/simh<br class=""><br class=""><br class=""></blockquote></div></div></blockquote></div><br class=""></div></div></body></html>