Sponsored Content
Full Discussion: initialize file to zero
Top Forums Shell Programming and Scripting initialize file to zero Post 302248079 by Satyak on Friday 17th of October 2008 02:06:56 AM
Old 10-17-2008
Java initialize file to zero

hi
can anyone tell how to initialize a file to zero
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Variable Initialize

Hi, i m trying to loop a variable value, Basically i m reading variable value from an input file and using in rest of the program. Bu my problem is when i first time read value and assign to variable it works fine, but in second read it concatinate second value to first value with a LF. I want to... (2 Replies)
Discussion started by: coolbudy
2 Replies

2. UNIX for Dummies Questions & Answers

Error: Internal system error: Unable to initialize standard output file

Hey guys, need some help. Running AIX Version 5.2 and one of our cron jobs is writing errors to a log file. Any ideas on the following error message. Error: Internal system error: Unable to initialize standard output file I'm guessing more info might be needed, so let me know. Thanks (2 Replies)
Discussion started by: firkus
2 Replies

3. UNIX for Dummies Questions & Answers

nslookup *** Can't initialize resolver

Has anyone seen this message before? I have a DNS problem. Recently DNS has been moved to two new servers, which I can ping. I changed the /etc/resolv.conf to point to these boxes but now I get the *** Can't initialize resolver message. Any ideas? (2 Replies)
Discussion started by: korfnz
2 Replies

4. SCO

initialize lp job

I use SCO UNIX from 2 years I need a command or procedure to make all log files empty and restart all counters like lp job number :( :confused: :( (1 Reply)
Discussion started by: sharina
1 Replies

5. HP-UX

Can not initialize the floppy

Hello Everyone, Has anyboby ever come across the problem when fd refuses to get initialised. I try to use mediainit command, the fd is being accessed (the fd's LIT is green for some secs) but then I get the message - "Initialize media command failed - permission denied" I checked the diskette,... (1 Reply)
Discussion started by: Andrey Malishev
1 Replies

6. Shell Programming and Scripting

Initialize a variable

Hi All, Please can you advise on how can I initialize a variable with a line. Suppose i want to initialize x with line redirects.www.virginatlantic.com.conf Best Regards, Shazin (1 Reply)
Discussion started by: Shazin
1 Replies

7. SCO

How to initialize tape drive

Hi all Just connected a SCSI tape drive to our ScoUnix server running Unixware 7.0.1. The ID assigned to it is 3. When I open ArcServe it is saying that tape drive is not found and I cannot configure it. How can I make the tape drive accessible to the system? Thanks! (4 Replies)
Discussion started by: ramon82
4 Replies

8. Red Hat

Fedora Initialize disklabel

What is the point of Fedora Initialize disklabel and how does it work? How do I check what my current Fedora's disklabel is initialized to? (1 Reply)
Discussion started by: cokedude
1 Replies

9. Shell Programming and Scripting

initialize a variable only once

hi, i have a script which needs to be run every 10 minutes.This is achieved using crontab utility, it is checking Number of calls on a service... if number of calls are not increasing then it will stop the service else do nothing. Now in the script, i fetch the current value in variable... (2 Replies)
Discussion started by: gauravah
2 Replies

10. Shell Programming and Scripting

Initialize file name bash shell - Linux

I am trying to initialize a file name in bash but not having much luck. For example, one of my bash scripts outputs a file named "FILE_1000G.vcf". I would like to rename FILE to match with the user's name. This is my code: set -e echo "Please enter your filename:" read filename rename... (6 Replies)
Discussion started by: Geneanalyst
6 Replies
Constraint initialize() 												   Constraint initialize()

Name
  Constraint initialize - Constraint class method to initialize a child object or widget's constraint record.

Synopsis
  typedef void (*XtInitProc)(Widget, Widget, ArgList, Cardinal *);
	 Widget request;
	 Widget init;
	 ArgList args;
	 Cardinal *num_args;

Inputs
  request   Specifies  the  newly  created child widget or object instance with its constraint record resource values set as requested by the
	    argument list, the resource database, and the constraint defaults.

  init	    Specifies the same widget or object with its constraint record fields as modified by any superclass Constraint initialize() meth-
	    ods.

  args	    Specifies the argument list that was passed to XtCreateWidget().

  num_args  Specifies the number of entries in the argument list.

Description
  The  Constraint  initialize()  method is registered on the initialize field of the Constraint class part structure, and is called by XtCre-
  ateWidget() when a child of the constraint widget is created.  The Constraint initialize() method performs the same sort of initializations
  on  the constraint record of a widget that the normal (Object, RectObj, or Core) initialize() method performs on the widget instance struc-
  ture.

  The request and init arguments specify the child widget that is being created.  The constraints field of the request	widget	points	to  a
  copy	of  the constraint record as it was after all of the constraint resources were initialized from the argument list, the resource data-
  base, or the resource list defaults.	The constraints field of the init widget points to the actual constraints record of the  widget,  and
  has  been further initialized by the Constraint initialize() method of any Constraint superclasses of the parent widget.  All modifications
  should be made to the init constraints record; the request argument exists so that the widget class can determine which field of  the  con-
  straints record have been modified by superclass Constraint initialize() methods.

  The  Constraint  initialize()  method  is  chained  in superclass-to-subclass order, and cannot be inherited.  If nothing in the constraint
  structure needs initialization, the Constraint class part initialize field should be NULL.

  The args and num_args arguments were added to this method in Release 4.

  See initialize(4) for an explanation of the things that an initialize procedure should do.  See XtCreateWidget(1) for full details  of  the
  widget creation process.

Example
  The following procedure is the Constraint initialize() method, slightly modified, of the Athena Form widget class.  Note how it obtains the
  constraint record and the parent form widget from the supplied child widget.	Note also that it provides "dynamic defaults" for two of  its
  constraint  resources:  if  dx or dy is equal to some default value (i.e., if it was not explicitly specified), then it will be replaced by
  the value of the XtNdefaultSpacing resource from the Form widget itself.

  Note that this procedure (and most other initialize() procedures in existence) has named its init argument new.  "new" is a  reserved  word
  in C++, and your programs will be more portable if you avoid using it in your C code.

     /* ARGSUSED */
     static void ConstraintInitialize(request, new, args, num_args)
	 Widget request, new;
	 ArgList args;
	 Cardinal *num_args;
     {
	 FormConstraints form = (FormConstraints)new->core.constraints;
	 FormWidget fw = (FormWidget)new->core.parent;

	 form->form.virtual_width = (int) new->core.width;
	 form->form.virtual_height = (int) new->core.height;

	 if (form->form.dx == default_value)
	     form->form.dx = fw->form.default_spacing;

	 if (form->form.dy == default_value)
	     form->form.dy = fw->form.default_spacing;

	 form->form.deferred_resize = False;
     }

See Also
  XtCreateWidget(1),
  Constraint(3), Core(3),
  Constraint destroy(4), initialize(4), Constraint set_values(4).

Xt - Intrinsics Methods 												   Constraint initialize()
All times are GMT -4. The time now is 04:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy