x2x
Functions
-
int main(int argc, char *argv[])
x2x [ option ] [ infile ]
+type char
data type
cchar (1byte)Cunsigned char (1byte)sshort (2byte)Sunsigned short (2byte)hint (3byte)Hunsigned int (3byte)iint (4byte)Iunsigned int (4byte)llong (8byte)Lunsigned long (8byte)ffloat (4byte)ddouble (8byte)elong double (16byte)aascii
-r bool
rounding
-e int
warning type for out-of-range value
0no warning1output index2output index and exit immediately
-c int
number of columns
-f str
print format
infile str
double-type data sequence
stdout
double-type transformed data sequence
ramp -l 4 | x2x +da # 0 # 1 # 2 # 3 ramp -l 4 | x2x +da -c 2 # 0 1 # 2 3 ramp -l 4 | sopr -a 0.5 | x2x +dc -r | x2x +ca -c 2 # 1 2 # 3 4 ramp -l 4 | x2x +da -c 2 -f %.1f # 0.0 1.0 # 2.0 3.0 echo -1 1000 | x2x +aC -e 0 | x2x +Ca # 0 # 255
- Parameters
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns
0 on success, 1 on failure.
See also