projects
/
my-code
/
hdw-sniff.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e2f679978ff89bd261554995ffae81061e49a67e
[my-code/hdw-sniff.git]
/
wep.c
1
#include <stdio.h>
2
#include <sys/stat.h>
3
#include <sys/types.h>
4
#include <fcntl.h>
5
6
#define MAX_C 20
7
8
int main(int argc,char *argv[]) {
9
int file_fd,c,i;
10
char my_buf[MAX_C+1];
11
12
file_fd=open(argv[1],O_RDONLY);
13
if(file_fd>0)
14
c=read(file_fd,my_buf,MAX_C);
15
for(i=0;i<MAX_C;i++) printf("%x ",my_buf[i]);
16
return 0;
17
}
18
19