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,425 of 243,242   
   Kaz Kylheku to Michael Sanders   
   Re: is_binary_file()   
   11 Dec 25 17:33:43   
   
   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)   

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


(c) 1994,  bbs@darkrealms.ca