home bbs files messages ]

Just a sample of the Echomail archive

COMPLANC:

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

 Message 242,372 of 243,097 
 Bonita Montero to All 
 Re: is_binary_file() 
 08 Dec 25 19:27:25 
 
From: Bonita.Montero@gmail.com

Am 08.12.2025 um 17:04 schrieb Scott Lurndal:
> Bonita Montero  writes:
>> Am 07.12.2025 um 22:51 schrieb Richard Heathfield:
>>> On 07/12/2025 19:01, Richard Harnden wrote:
>>>> On 06/12/2025 01:05, Michael Sanders wrote:
>>>>> Am I close? Missing anything you'd consider to be (or not)
>>>>> needed?
>>>> A text file is supposed to end with a '\n' (M$, of course, largely
>>>> ignores this convention), but a quick test could be:
>>>>
>>>> f = fopen(path, "rb");
>>>>
>>>> fseek(f, -1, SEEK_END);
>>> Not guaranteed to work with binary files...
>>>
>>> 7.19.9.2(3)
>>>
>>> A binary stream need not meaningfully support fseek calls with a
>>> whence value of SEEK_END.
>>  From the glibc Reference Manual:
> Has nothing to do with glibc.  Dates back to the earliest
> days of unix,  and is codified by POSIX/SUS.

Where did I say that this is tue for glibc only ?

--- 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