IPB
>  Man Pages > Linux > openSUSE 10.2 > Section 3 > XtFindFile man page

XtFindFile man page

Section 3 - openSUSE 10.2 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!


XtFindFile(3)                    XT FUNCTIONS                    XtFindFile(3)



NAME
       XtFindFile - search for a file using substitutions in the path list

SYNTAX
       String XtFindFile(String path, Substitution substitutions, Cardinal
              num_substitutions, XtFilePredicate predicate);

ARGUMENTS
       path      Specifies a path of file names, including substitution char-
                 acters.

       substitutions
                 Specifies a list of substitutions to make into a path.

       num_substitutions
                 Specifies the number of substitutions passed in.

       predicate Specifies a procedure to call to judge a potential file name,
                 or NULL.

DESCRIPTION
       The path parameter specifies a string that consists of a series of
       potential file names delimited by colons.  Within each name, the per-
       cent character specifies a string substitution selected by the follow-
       ing character.  The character sequence ``%:'' specifies an embedded
       colon that is not a delimiter; the sequence is replaced by a single
       colon.  The character sequence ``%%'' specifies a percent character
       that does not introduce a substitution; the sequence is replaced by a
       single percent character.  If a percent character is followed by any
       other character, XtFindFile looks through the specified substitutions
       for that character in the match field and if found replaces the percent
       and match characters with the string in the corresponding substitution
       field.  A substitution field entry of NULL is equivalent to a pointer
       to an empty string.  If the operating system does not interpret multi-
       ple embedded name separators in the path (i.e., ``/'' in POSIX) the
       same way as a single separator, XtFindFile will collapse multiple sepa-
       rators into a single one after performing all string substitutions.
       Except for collapsing embedded separators, the contents of the string
       substitutions are not interpreted by XtFindFile and may therefore con-
       tain any operating-system-dependent characters, including additional
       name separators.  Each resulting string is passed to the predicate pro-
       cedure until a string is found for which the procedure returns True;
       this string is the return value for XtFindFile.  If no string yields a
       True return from the predicate, XtFindFile returns NULL.

       If the predicate parameter is NULL, an internal procedure that checks
       if the file exists, is readable, and is not a directory will be used.

       It is the responsibility of the caller to free the returned string
       using XtFree when it is no longer needed.

SEE ALSO
       X Toolkit Intrinsics - C Language Interface
       Xlib - C Language X Interface



X Version 11                      libXt 1.0.4                    XtFindFile(3)


Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Sat Sep 8 16:39:09 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

svn man page (6140 hits)
(FreeBSD 6.2)

sqlite3 man page (5592 hits)
(openSUSE 10.2)

adv_cap_autoneg man page (5041 hits)
(Solaris 10 11_06)

CPAN man page (4786 hits)
(Suse Linux 10.1)

ssh man page (4438 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (3505 hits)
(Solaris 10 11_06)

signal man page (3362 hits)
(Suse Linux 10.1)

netcat man page (3359 hits)
(Suse Linux 10.1)

pprosetup man page (2871 hits)
(Solaris 10 11_06)

startproc man page (2730 hits)
(Suse Linux 10.1)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Travel :: Prototype Assembly Service :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum