From: 046-301-5902@kylheku.com
On 2025-12-06, Michael Sanders wrote:
> Am I close? Missing anything you'd consider to be (or not) needed?
Hi Michael,
I contract for the the defense industry and badly need this function!
I am working with proposed code like:
if (is_binary_file(arg))
launch_nuclear_strike();
So I'm really sweating over the implementation, as you can imagine.
This thread has been very helpful.
I'm still leaning toward my paranoid functionw hich just checks that
every bit of every byte is either 0 or 1 to confirm that the binary
system is used.
In the I/O error case, I will cautiously return a a true value; we would
not want our side to lose due to a storage hardware issue.
--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca
--- SoupGate-Win32 v1.05
* Origin: you cannot sedate... all the things you hate (1:229/2)
|