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,436 of 243,242   
   Michael Sanders to Michael Sanders   
   Re: is_binary_file()   
   13 Dec 25 02:32:57   
   
   From: porkchop@invalid.foo   
      
   On Sat, 13 Dec 2025 00:20:48 -0000 (UTC), Michael Sanders wrote:   
      
   > On Fri, 12 Dec 2025 15:33:01 -0800, Chris M. Thomasson wrote:   
   >   
   >> On 12/12/2025 2:54 PM, Michael Sanders wrote:   
   >> [...]   
   >>>      fclose(f);   
   >>>      return 1; // probally text   
   >>> }   
   >>   
   >> define the probability? Say in 0...1?   
   >>   
   >> [...]   
   >   
   > Add it Chris & I'll roll it in =)   
   >   
   > Me? I'd go with steps of say, 10% just to   
   > make it human-friendly, but that's just me.   
      
   just thinking out loud about probabilities...   
      
   int is_text_file(const char *path, const uint8_t map[256], int probability)   
      
   --   
   :wq   
   Mike Sanders   
      
   --- 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