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
c
char (1byte)C
unsigned char (1byte)s
short (2byte)S
unsigned short (2byte)h
int (3byte)H
unsigned int (3byte)i
int (4byte)I
unsigned int (4byte)l
long (8byte)L
unsigned long (8byte)f
float (4byte)d
double (8byte)e
long 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.