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,357 of 243,242   
   Bonita Montero to All   
   Re: is_binary_file()   
   07 Dec 25 19:04:51   
   
   From: Bonita.Montero@gmail.com   
      
   Am 06.12.2025 um 18:33 schrieb Scott Lurndal:   
   > Michael Sanders  writes:   
   >> Am I close? Missing anything you'd consider to be (or not) needed?   
   > Technically, there is no such thing as a "binary" file.   All files   
   > are simply sequences of bytes with no format implied.  Interpretation   
   > of the file content is purely application dependent.   
   >   
   > C-based applications have certain restrictions on text format   
   > due to the use of the ASCII NUL code as a string terminator, but   
   > that's C.   The content of a text file processed by a different   
   > language, or by C using application-defined string containers   
   > can easily contain a NUL byte yet still be considered "text"   
   > if that distinction is necessary.   
   >   
   > Because of C/C++, a valid UTF-8 encoding will not include   
   > the NUL byte.   
      
   You're a philosopher of language because you can't handle ambiguity. But   
   C is ambiguous at this point.   
      
   --- 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