Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #158486
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | Re: Finding the name of a file |
| Date | 2021-01-20 09:06 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <86czxzo7vq.fsf@linuxsc.com> (permalink) |
| References | (5 earlier) <rtl6vf$kgg$1@z-news.wcss.wroc.pl> <87eeip696t.fsf@nosuchdomain.example.com> <slrns02hp7.2ptb.grahn+nntp@frailea.sa.invalid> <864kjiozlz.fsf@linuxsc.com> <slrns040ms.2ptb.grahn+nntp@frailea.sa.invalid> |
Jorgen Grahn <grahn+nntp@snipabacken.se> writes:
> On Fri, 2021-01-15, Tim Rentsch wrote:
>
>> Jorgen Grahn <grahn+nntp@snipabacken.se> writes:
>>
>>> On Tue, 2021-01-12, Keith Thompson wrote:
>>> ...
>>>
>>>> To be clear, this is true of Unix-like systems (and /proc is more or
>>>> less Linux-specific, though some other Unix-like systems may support
>>>> it). The original post in this thread didn't specify an operating
>>>> system or file system.
>>>
>>> The OP was simply asking about the standard C library, if there is
>>> a name_of(FILE*). [...]
>>
>> The top-of-thread posting that I saw said this (some white space
>> added):
>>
>> Let assume that I have created a pointer to a File and
>> I opened a file in some mode.
>>
>> For example: FILE* fp = fopen("example.txt", "r")
>>
>> I want to know if there is any function that takes as
>> parameter the file pointer fp and returns the name of
>> the file "example.txt" and the mode "r".
>>
>> I don't see anything there that says he is asking (only) about
>> the standard C library. What he wants to know is about "any
>> function". Are you referring to some other comment that I may
>> have missed?
>
> No, that's what I read, and combined with the fact that he asked in
> comp.lang.c. [...]
I don't automatically assume a question asked in comp.lang.c
is only about standard C. Especially not with a question
like this one, where if someone is aware of the distinction
there is a good chance they would know enough to be to find
the answer without asking.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Finding the name of a file emanuele cannizzo <emacannizzo@gmail.com> - 2021-01-12 07:26 -0800
Re: Finding the name of a file Bart <bc@freeuk.com> - 2021-01-12 16:14 +0000
Re: Finding the name of a file scott@slp53.sl.home (Scott Lurndal) - 2021-01-12 17:02 +0000
Re: Finding the name of a file Christian Hanné <the.hanne@gmail.com> - 2021-01-12 17:29 +0100
Re: Finding the name of a file scott@slp53.sl.home (Scott Lurndal) - 2021-01-12 17:03 +0000
Re: Finding the name of a file antispam@math.uni.wroc.pl - 2021-01-12 19:52 +0000
Re: Finding the name of a file Mark Bluemel <mark.bluemel@gmail.com> - 2021-01-12 08:37 -0800
Re: Finding the name of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-12 19:41 +0300
Re: Finding the name of a file Malcolm McLean <malcolm.arthur.mclean@gmail.com> - 2021-01-12 09:34 -0800
Re: Finding the name of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-12 20:56 +0300
Re: Finding the name of a file Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2021-01-12 09:42 -0700
Re: Finding the name of a file Bart <bc@freeuk.com> - 2021-01-12 16:56 +0000
Re: Finding the name of a file Anton Shepelev <anton.txt@g{oogle}mail.com> - 2021-01-12 19:58 +0300
Re: Finding the name of a file Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2021-01-12 11:25 -0700
Re: Finding the name of a file antispam@math.uni.wroc.pl - 2021-01-12 20:12 +0000
Re: Finding the name of a file Bart <bc@freeuk.com> - 2021-01-12 20:29 +0000
Re: Finding the name of a file antispam@math.uni.wroc.pl - 2021-01-12 22:14 +0000
Re: Finding the name of a file Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2021-01-12 15:12 -0800
Re: Finding the name of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2021-01-15 07:41 +0000
Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-15 09:54 -0800
Re: Finding the name of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2021-01-15 21:02 +0000
Re: Finding the name of a file Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2021-01-15 18:30 -0700
Re: Finding the name of a file Jorgen Grahn <grahn+nntp@snipabacken.se> - 2021-01-16 07:47 +0000
Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-20 09:11 -0800
Re: Finding the name of a file Siri Cruise <chine.bleu@yahoo.com> - 2021-01-20 09:39 -0800
Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-23 08:52 -0800
Re: Finding the name of a file Vir Campestris <vir.campestris@invalid.invalid> - 2021-01-25 21:43 +0000
Re: Finding the name of a file scott@slp53.sl.home (Scott Lurndal) - 2021-01-25 23:47 +0000
Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-27 07:55 -0800
Re: Finding the name of a file Tim Rentsch <tr.17687@z991.linuxsc.com> - 2021-01-20 09:06 -0800
Re: Finding the name of a file Kaz Kylheku <563-365-8930@kylheku.com> - 2021-01-12 18:18 +0000
Re: Finding the name of a file Manfred <noname@add.invalid> - 2021-01-15 20:12 +0100
Re: Finding the name of a file scott@slp53.sl.home (Scott Lurndal) - 2021-01-15 19:55 +0000
Re: Finding the name of a file Manfred <noname@add.invalid> - 2021-01-16 02:06 +0100
csiph-web