DtDtsFileToAttributeValue man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



     DtDtsFileToAttribuUNIXlSystem V (1 AuDtDtsFileToAttributeValue(3)

     NAME
	  DtDtsFileToAttributeValue - get a specified attribute value
	  for a file

     SYNOPSIS
	  #include <Dt/Dts.h>

	  char *DtDtsFileToAttributeValue(const char *filepath,
					  const char *attr_name);

     DESCRIPTION
	  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
	  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
	  The application should use the DtDtsFreeAttributeValue(3)
	  function to release the memory for the returned value.

     EXAMPLES
	  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);
	  }

     Page 1					      (printed 9/3/04)

     DtDtsFileToAttribuUNIXlSystem V (1 AuDtDtsFileToAttributeValue(3)

     SEE ALSO
	  DtDts(5), DtDtsLoadDataTypes(3), DtDtsRelease(3),
	  DtDtsFreeAttributeValue(3).

     Page 2					      (printed 9/3/04)

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net