FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
void print_service
(
int *
buff
,
int
size
)
Definition at line
56
of file
dim_get_service.c
.
References
i
, and
size
.
Referenced by
rout()
.
58
{
59
int
i
,j;
60
char
*asc;
61
int
last[4];
62
63
asc = (
char
*)
buff
;
64
for
( i = 0; i <
size
; i++)
65
{
66
if
(!(i%4))
67
printf(
"H"
);
68
printf(
" %08X "
,
buff
[i]);
69
last[i%4] =
buff
[
i
];
70
if
(i%4 == 3)
71
{
72
printf(
" '"
);
73
for
(j = 0; j <16; j++)
74
{
75
if
(isprint(asc[j]))
76
printf(
"%c"
,asc[j]);
77
else
78
printf(
"."
);
79
}
80
printf(
"'\n"
);
81
for
(j = 0; j <4; j++)
82
{
83
if
(j == 0)
84
printf(
"D"
);
85
printf(
"%11d "
,last[j]);
86
}
87
printf(
"\n"
);
88
asc = (
char
*)&
buff
[i+1];
89
}
90
}
91
if
(i%4)
92
{
93
94
for
(j = 0; j < 4 - (i%4); j++)
95
printf(
" "
);
96
printf(
" '"
);
97
for
(j = 0; j < (i%4) * 4; j++)
98
{
99
if
(isprint(asc[j]))
100
printf(
"%c"
,asc[j]);
101
else
102
printf(
"."
);
103
}
104
printf(
"'\n"
);
105
for
(j = 0; j < (i%4); j++)
106
{
107
if
(j == 0)
108
printf(
"D"
);
109
printf(
"%11d "
,last[j]);
110
}
111
printf(
"\n"
);
112
}
113
}
i
int i
Definition:
db_dim_client.c:21
size
int size
Definition:
db_dim_server.c:17
buff
int buff[BUFFSIZE]
Definition:
db_dim_client.c:15
Here is the caller graph for this function:
dim
src
util
dim_get_service.c
Generated on Sun Sep 18 2016 20:50:32 for FACT++ by
1.8.11