home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 242,468 of 243,242   
   Lynn McGuire to Kaz Kylheku   
   Re: is_binary_file()   
   17 Dec 25 00:52:51   
   
   From: lynnmcguire5@gmail.com   
      
   On 12/11/2025 11:33 AM, Kaz Kylheku wrote:   
   > 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.   
      
   The probability of this function being correct may be less than 50%.  I   
   would hope that any military function would be much higher reliability   
   than this.   
      
   Lynn   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca