Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (F)
Guardian Procedure Calls Reference Manual—522629-013
5-168
FILENAME_COMPARE_ Procedure
FILENAME_COMPARE_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Considerations
Example
Related Programming Manual
Summary
The FILENAME_COMPARE_ procedure compares two file names to determine
whether they refer to the same object.
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
error returned value
INT
indicates the result of the operation. Possible values are:
-1 The file names do not refer to the same object.
0 The file names refer to the same object.
> 0 A file-system error prevented evaluation; the returned value is the file-
system error number.
filename1:length1 input:input
STRING .EXT:ref:*, INT:value
specifies the first file name that is compared. The value of
filename1 must be
exactly
length1 bytes long. It must be a valid file name or valid DEFINE name; if
#include <cextdecs(FILENAME_COMPARE_)>
short FILENAME_COMPARE_ ( const char *filename1
,short length1
,const char *filename2
,short length2 );
error := FILENAME_COMPARE_ ( filename1:length1 ! i:i
,filename2:length2 ); ! i:i