Article View: comp.sys.ibm.pc
Article #14990Checking if 2 file pointers refer to the same file from C program.
From: S. Jayashankar
Date: Fri, 26 Dec 1986 04:11
Date: Fri, 26 Dec 1986 04:11
13 lines
995 bytes
995 bytes
[Someone's not hungry enough.]
Does anyone know how to check whether 2 file pointers opened
independently in a C program point to the same disk file? Using only
the documented DOS calls. How does the DOS copy command know when a
file is being copied to itself?
Any help will be appreciated. Thank you.
Jai.
-----
Jai Srinivasan, UUCP: {gatech,harvard,ihnp4,pyramid,seismo}!ut-sally!im4u!jai
ARPA: jai@im4u.UTEXAS.EDU, jai@sally.UTEXAS.EDU
Technical Details
Message-ID:
<1291@im4u.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!im4u!jaiShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!im4u!jai From: jai@im4u.UUCP (S. Jayashankar) Newsgroups: comp.sys.ibm.pc Subject: Checking if 2 file pointers refer to the same file from C program. Message-ID: <1291@im4u.UUCP> Date: Thu, 25-Dec-86 23:11:00 EST Article-I.D.: im4u.1291 Posted: Thu Dec 25 23:11:00 1986 Date-Received: Fri, 26-Dec-86 21:37:29 EST Reply-To: jai@im4u.UUCP (Jai Srinivasan) Distribution: world Organization: U. Texas CS Dept., Austin, Texas Lines: 13