File tree 1 file changed +22
-22
lines changed
1 file changed +22
-22
lines changed Original file line number Diff line number Diff line change 9
9
*/
10
10
int main (int argc , char * argv [])
11
11
{
12
- int bytes , i ;
13
- unsigned char * func_ptr ;
12
+ int bytes , i ;
13
+ unsigned char * func_ptr ;
14
14
15
- if (argc != 2 )
16
- {
17
- printf ("Error\n" );
18
- exit (1 );
19
- }
20
- bytes = atoi (argv [1 ]);
21
- if (bytes < 0 )
22
- {
23
- printf ("Error\n" );
24
- exit (2 );
25
- }
26
- func_ptr = (unsigned char * )main ;
27
- i = 0 ;
28
- if (bytes > 0 )
29
- {
30
- while (i < (bytes - 1 ))
31
- printf ("%02hhx " , func_ptr [i ++ ]);
32
- printf ("%hhx\n" , func_ptr [i ]);
33
- }
34
- return (0 );
15
+ if (argc != 2 )
16
+ {
17
+ printf ("Error\n" );
18
+ exit (1 );
19
+ }
20
+ bytes = atoi (argv [1 ]);
21
+ if (bytes < 0 )
22
+ {
23
+ printf ("Error\n" );
24
+ exit (2 );
25
+ }
26
+ func_ptr = (unsigned char * )main ;
27
+ i = 0 ;
28
+ if (bytes > 0 )
29
+ {
30
+ while (i < (bytes - 1 ))
31
+ printf ("%02hhx " , func_ptr [i ++ ]);
32
+ printf ("%hhx\n" , func_ptr [i ]);
33
+ }
34
+ return (0 );
35
35
}
You can’t perform that action at this time.
0 commit comments