给定文件指针有任何方法来获取文件的填充路径 [英] Given a file pointer is there any way to get the fill path to thefile

查看:78
本文介绍了给定文件指针有任何方法来获取文件的填充路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过unistd.h

但没什么了

I tried unistd.h
but nothing much

推荐答案

pa ******** @ hotmail.com 写道:

我试过unistd .h

但没有多少
I tried unistd.h
but nothing much



试过什么?啊,我看到你在主题栏中隐藏了你的问题。


这个主题已经在这里完成了几次死亡,查看档案。


-

Ian Collins。

Tried what? Ah, I see you hid your question in the subject line.

This topic has been done to death here several times, check the archives.

--
Ian Collins.


pa ******** @ hotmail.com 写道:

我试过unistd.h

但没什么多少
I tried unistd.h
but nothing much



(请把你的问题放在邮件正文中,并使用

主题行作为标题;或者座右铭用于讨论。不要

依靠Subject来承担全部负担。)


这是comp中的问题19.15 .lang.c经常被问到

问题(FAQ)列表,< http://www.c-faq.com/>,你不是

。想要得到答案。


-
Er * ********@sun.com


" pa ******** @ hotmail.com" < pa ******** @ hotmail.comwrites:
"pa********@hotmail.com" <pa********@hotmail.comwrites:

我试过unistd.h

但是没有多少
I tried unistd.h
but nothing much



请提出问题:


给定文件指针是否有任何方法可以获得填充路径

文件


在你的邮件正文中。


标准C中没有办法做到这一点,除非你记得打开文件时

名称。对unistd.h的引用意味着你使用类Unix系统就可以获得
;我不相信在Unix下有任何直接的方法可以做到这一点,但是如果有的话,你会在

comp中获得更好的答案。 unix.programmer(首先查看他们的FAQ)。


-

Keith Thompson(The_Other_Keith) ks *** @ mib.org < http://www.ghoti.net/~kst>

诺基亚

我们必须做点什么。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,是部长

Please put the question:

Given a file pointer is there any way to get the fill path to the
file

in the body of your message.

There is no way in standard C to do this, unless you remember the file
name when you open it. The reference to unistd.h implies that you''re
using a Unix-like system; I don''t believe there''s any direct way to do
this under Unix either, but if there is you''ll get better answers in
comp.unix.programmer (check their FAQ(s) first).

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


这篇关于给定文件指针有任何方法来获取文件的填充路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆