dmp
Functions
-
int main(int argc, char *argv[])
dmp [ option ] [ infile ]
-l int
block length \((1 \le L)\)
-m int
block order \((0 \le L-1)\)
+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)
-f str
print format
infile str
data sequence
stdout
dumped data sequence
This command converts data from
infile(or standard input) to a human readable form (one sample per line, with line numbers), and sends the result to standard output.# 1, 2, 3, 4 ramp -s 1 -l 4 | dmp # 0 1 # 1 2 # 2 3 # 3 4
ramp -s 1 -l 4 | dmp -l 2 # 1 1 # 2 2 # 1 3 # 2 4
ramp -s 1 -l 4 | dmp -m 2 -f %.1f # 0 1.0 # 1 2.0 # 0 3.0 # 1 4.0
- Parameters
argc – [in] Number of arguments.
argv – [in] Argument vector.
- Returns
0 on success, 1 on failure.