*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> DtDtsFileToAttributeValue (3)              
Title
Content
Arch
Section
 

Contents


 DtDtsFileToAttributeValue(library calDlt)DtsFileToAttributeValue(library call)




 NAME    [Toc]    [Back]
      DtDtsFileToAttributeValue - get a specified attribute value for a file

 SYNOPSIS    [Toc]    [Back]
      #include <Dt/Dts.h>
      char *DtDtsFileToAttributeValue(
      const char *filepath,
      const char *attr_name);

 DESCRIPTION    [Toc]    [Back]
      The DtDtsFileToAttributeValue function returns a data attribute value
      for the specified file.

      The filepath argument is the pathname of the file.

      The attr_name argument is a pointer to an attribute name string.

 RETURN VALUE    [Toc]    [Back]
      Upon successful completion, the DtDtsFileToAttributeValue function
      returns a pointer to a data attribute value string, or NULL if no
      value could be determined.

 APPLICATION USAGE    [Toc]    [Back]
      The application should use the DtDtsFreeAttributeValue(3) function to
      release the memory for the returned value.

 EXAMPLES    [Toc]    [Back]
      The following takes a list of files as arguments and determines the
      description of the data type for each file:

      #include <Dt/Dts.h>
      #define ATTRIBUTE       "DESCRIPTION"
      main (int argc, char **argv)
      {
              char    *attribute;
              /* load data types database */
              DtDtsLoadDataTypes();
              argv++;
              while (*argv) {
                      /* get attribute for file */
                      attribute = DtDtsFileToAttributeValue(*argv, ATTRIBUTE);
                      if (attribute)
                              printf("%s: %s\n", *argv, attribute);
                      argv++;
              }
              DtDtsRelease();
              exit(0);
      }

 SEE ALSO    [Toc]    [Back]




                                    - 1 -       Formatted:  January 24, 2005






 DtDtsFileToAttributeValue(library calDlt)DtsFileToAttributeValue(library call)




      Dt/Dts.h, DtDtsLoadDataTypes(3), DtDtsRelease(3),
      DtDtsFreeAttributeValue(3).


                                    - 2 -       Formatted:  January 24, 2005
[ Back ]
      
      
 Similar pages
Name OS Title
add_proplist_entry Tru64 adds an Extended File Attribute to the Extended File Attribute buffer
libAF Tru64 Provide Attribute File Library functions to manipulate file attributes
tt_message_file_set HP-UX set the file attribute for a message
tt_message_file HP-UX retrieves the file attribute from a message
sizeof_proplist_entry Tru64 determines space necessary to store an Extended File Attribute
mattrib Tru64 mtools utility to change DOS file attribute options
get_proplist_entry Tru64 initializes pointers to the corresponding entries in an Extended File Attribute buffer
pthread_attr_setstacksize OpenBSD set and get stacksize attribute
pthread_attr_setdetachstate OpenBSD set and get detachstate attribute
pthread_attr_getstacksize OpenBSD set and get stacksize attribute
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service