fwrite() returning ULONG_MAX
 · 3 min read
I had a strange problem recently... occasionally, one of my FastCGI programs would go into a
near-infinite loop (actually, just looping approximately 18 x 1018 or 18 billion billion times!!).  It
was easy to trace the problem back to an fwrite() call returning ULONG_MAX (18446744073709551615 on this particular
64-bit server).
