putch - put argument in output history file
int putch(name, format, val)
parameter name
format of variable (d,f,s)
variable value of variable
0 = if sucessful
This function is a seplib companion to the input routines fetch, getch, and hetch that appends values to the output history file with expressions of the form `name=value'.
Possible format conversions are ``d'' (or ``i''), ``f'' (or ``r''), ``g'' and ``s'' for integer, floating point, double precision, and strings respectively.
These values may be diverted from the default history file on standard output with the command line parameter `head=filename'.
From C:
putch ( ``intpar'', ``i'', &int);
putch ( ``intpar2'', ``d'', &int);
putch ( ``float'', ``f'', &float);
putch ( ``floatpar'', ``r'', &float);
putch ( ``somename'', ``s'', ``name'');
From Fortran:
call putch ( 'intpar', 'i', int)
call putch ( 'intpar2', 'd', int)
call putch ( 'floatpar', 'f', float)
call putch ( 'float', 'r', float)
call putch ( 'somename', 's', 'name')
the getch manpage, the fetch manpage, the hetch manpage, the puthead manpage
Program execution is terminated when an invalid format is passed.
It is not presently possible to specify multiple output names in one call as can presently be done on input with fetch, etc.
parameter output
sep