repo.or.cz
/
claws.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initial message templates support
[claws.git]
/
libkcc
/
test_check.c
blob
fe7cc1126ce9dbcbdcf058850c46bc29498b4e75
1
#include <stdio.h>
2
main
()
3
{
4
FILE
*
fp
;
5
char
s
[
500
];
6
int
i
=
0
,
c
;
7
8
fp
=
fopen
(
"test_file"
,
"r"
);
9
if
(
fp
==
NULL
) {
printf
(
"not found
\n
"
);
exit
;}
10
11
while
((
c
=
fgetc
(
fp
)) !=
EOF
&&
i
<
490
)
12
{
13
s
[
i
] =
c
;
i
++;
14
}
15
s
[
i
]=
'\0'
;
16
17
printf
(
"%d bytes ; %x
\n
"
,
i
,
KCC_check
(
s
,
0
));
18
}