<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><div>Moving to COFF ,..</div><div><br></div><blockquote><hr id="zwchr"><b>From: </b>"Rich Salz" <rich.salz@gmail.com><br><b>To: </b>"TUHS main list" <tuhs@tuhs.org><br><b>Cc: </b>"Douglas McIlroy" <douglas.mcilroy@dartmouth.edu><br><b>Sent: </b>Monday, September 30, 2024 4:03:15 PM<br><b>Subject: </b>[TUHS] Re: Minimum Array Sizes in 16 bit C (was Maximum)<br><br><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 30, 2024 at 3:12 PM Steffen Nurpmeso <<a href="mailto:steffen@sdaoden.eu" target="_blank">steffen@sdaoden.eu</a>> wrote<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
noone ever told them that even the eldest C can be used in a safe<br>
way;</blockquote><div> </div><div>Perhaps we have different meanings of the word safe.</div><div><br></div><div>    void foo(char *p) { /* interesting stuff here */ ; free(p); } <br></div><div>    void bar() { char *p = malloc(20);</div><div>        foo(p);</div><div>        printf("foo is %s\n", p);</div><div>        foo(p);</div><div>    }</div></div><div class="gmail_quote">Why should I have to think about this code when the language already knows what is wrong.</div><div class="gmail_quote"><br></div></div></blockquote><div dir="ltr"><div class="gmail_quote">No one would make the claim that programming in machine "language" is safe.</div><div class="gmail_quote"><br></div><div class="gmail_quote">No one would make the claim that programming in assembly "language" is safe.</div><div class="gmail_quote"><br></div><div class="gmail_quote">I've always viewed C as a portable assembler.  I think the real issue has nothing to do with the "safety" of C, but rather the "safety" of your-choice-of-C-libraries-and-methods.</div><div class="gmail_quote"><br></div><div class="gmail_quote">My $.02</div><div class="gmail_quote"><br></div><div class="gmail_quote">Jim</div><div class="gmail_quote"><br></div></div>
</div></body></html>