<p></p>
<blockquote>
<p>N.B. As of cygwin 1.5.25 fopen("crash.dmp","a") DOES NOT WORK!  crash.dmp<br>
contains garbled output as if the file pointer gets set to the start of the<br>
file, not the end.  So we synthesize our own append mode.</p>
</blockquote>
<p>Hi Eliot. Please update your Cygwin ASAP! It's hardly believeable that the append-mode in <code>fopen</code> is broken in a fairly recent Cygwin installation.</p>
<pre><code>$ cygcheck -c cygwin
Cygwin Package Information
Package              Version        Status
cygwin               3.2.0-1        OK
</code></pre>
<pre><code>$ cygcheck -f /usr/include/stdio.h
cygwin-devel-3.2.0-1
</code></pre>
<p>This works like a charm and as expected:</p>
<pre><code>/* File name is hello_world.c */
#include <stdio.h>

int main(void)
{
        FILE *pFile;
        pFile = fopen("crash.dmp","a+t");
        fprintf(pFile, "%s", "Hello!");
        fclose(pFile);
}
</code></pre>
<p>PLEASE! Update your Cygwin installation. :-)</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/65d9d814015f68f472966bdd6ee0263bd4d1c9e0#commitcomment-57342743">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AIJPEW7ZZCYTP6SMAVAQ473UEVHODANCNFSM5FD5ZFPA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AIJPEWZYIZ2CGBIS6S2UDBDUEVHODA5CNFSM5FD5ZFPKYY3PNVWWK3TUL52HS4DFVVBW63LNNF2EG33NNVSW45FKMNXW23LFNZ2F62LEZYBWV6YX.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/65d9d814015f68f472966bdd6ee0263bd4d1c9e0#commitcomment-57342743",
"url": "https://github.com/OpenSmalltalk/opensmalltalk-vm/commit/65d9d814015f68f472966bdd6ee0263bd4d1c9e0#commitcomment-57342743",
"name": "View Commit"
},
"description": "View this Commit on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>