Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xtvagetsubvalues(1) [hpux man page]

XtVaGetSubvalues()														XtVaGetSubvalues()

Name
  XtVaGetSubvalues - retrieve the current values of subpart resources, using varargs argument style.

Synopsis
  void XtVaGetSubvalues(base, resources, num_resources, ..., NULL)
	   XtPointer base;
	   XtResourceList resources;
	   Cardinal num_resources;

Inputs
  base	    Specifies the base address of the subpart data structure for which the resources should be retrieved.

  resources Specifies the subpart resource list.

  num_resources
	    Specifies the number of resources in the resource list.

  ..., NULL A  NULL-terminated	variable-length  list  of  resource  names and the addresses at which the values of those resources are to be
	    stored.

Availability
  Release 4 and later.

Description
  XtVaGetSubvalues() obtains the values of the resources named in the variable-length argument list  (and  described  in  the  resource  list
  resources)  from  the subpart structure pointed to by base, and stores those values at the addresses specified in the variable length argu-
  ment list.  Note that the special symbol XtVaTypedArg is not supported by XtVaGetSubvalues().  If XtVaTypedArg is specified in the list,  a
  warning message is issued and the entry is then ignored.

  XtVaGetSubvalues()  is  identical  to XtGetSubvalues() except that the args array of resource names and values and the num_args argument of
  that function are replaced with a NULL-terminated variable-length argument list.

  See XtGetSubvalues() for more information on this function.  See XtVaSetValues() for more information  on  using  variable-length  argument
  lists to specify resources.  See XtGetApplicationResources() for information on how to declare an XtResourceList.

See Also
  XtGetApplicationResources(1), XtGetSubvalues(1), XtVaSetValues(1).

Xt - Resource Management													XtVaGetSubvalues()

Check Out this Related Man Page

XtVaSetSubvalues()														XtVaSetSubvalues()

Name
  XtVaSetSubvalues - set the current values of subpart resources, using varargs argument style.

Synopsis
  void XtVaSetSubvalues(base, resources, num_resources, ..., NULL)
	   XtPointer base;
	   XtResourceList resources;
	   Cardinal num_resources;

Inputs
  base	    Specifies the base address of the subpart data structure into which the resources should be written.

  resources Specifies the subpart resource list.

  num_resources
	    Specifies the number of resources in the resource list.

  ..., NULL A NULL-terminated variable-length list of resource name/value pairs to override any other resource specifications.

Availability
  Release 4 and later.

Description
  XtVaSetSubvalues()  sets the resources named in the variable length argument list to the values specified in the same list.  The values are
  copied into the structure pointed to by base at the offset specified by the resource descriptions in	resources.   Note  that  the  special
  resource  name  XtVaTypedArg is not supported by XtVaSetSubvalues().	If XtVaTypedArg is specified in the list, a warning message is issued
  and the entry is then ignored.

  XtVaSetSubvalues() is identical to XtSetSubvalues() except that the args array of resource names and values and the  num_args  argument  of
  that function are replaced with a NULL-terminated variable-length argument list.

  See  XtSetSubvalues()  for  more  information on this function.  See XtVaSetValues() for more information on using variable-length argument
  lists to specify resources.  See XtGetApplicationResources() for a description of how to declare an XtResourceList.

See Also
  XtGetApplicationResources(1), XtSetSubvalues(1), XtVaSetValues(1).

Xt - Resource Management													XtVaSetSubvalues()
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Creating a file in variable length format

Hi all, Does anyone know a technique for creating a download file in variable length format? I have looked around but haven't found any resources on this (or, maybe I'm not sure what to Google for :) ) Thanks in advance! (2 Replies)
Discussion started by: Sarahb29
2 Replies

2. Shell Programming and Scripting

how to retrieve base name of the file

I have a file name stored in a variable. A=/bb/data/f233pdb How can I retrive the base name (f233pdb) and the path (/bb/data/) and assign them to two new variables, so the result will look like this B=f233pdb C=/bb/data/ Thansk a lot for any help -A (8 Replies)
Discussion started by: aoussenko
8 Replies

3. Shell Programming and Scripting

length of a variable!

Hi everyone! I have a question. How can I limit the length of a variable? If its bigger than 9 for example to stop sa script from running. (3 Replies)
Discussion started by: cristi2008
3 Replies

4. Programming

C - Freeing resources

I was wondering what is the function in C to free a resource(usually a variable) I know in C# there a Garbage collector, but in c and C++ there are none. I believe in c++ the function is free(); (8 Replies)
Discussion started by: james2432
8 Replies

5. Shell Programming and Scripting

Split variable length and variable format CSV file

Dear all, I have basic knowledge of Unix script and her I am trying to process variable length and variable format CSV file. The file length will depend on the numbers of Earnings/Deductions/Direct Deposits. And The format will depend on whether it is Earnings/Deductions or Direct Deposits... (2 Replies)
Discussion started by: chechun
2 Replies

6. Shell Programming and Scripting

awk line with two conditions

Hi there, I wanna define a variable 'tempbase'. Therefore I read a text file "base.out". "base.out" contains a list with four columns. 'tempbase' is the 4th entry in the line, where the first entry is equal to the predefined variable $orb1 and the second entry is equal to $orb2. I wrote the code... (2 Replies)
Discussion started by: friend
2 Replies