<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">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.<br></div></div>