Skip to content

Commit

Permalink
more fixs for INT_MAX
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenni-Foued committed Nov 1, 2020
1 parent 89e7aad commit 9063dc1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions print_hex.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
*/
int print_x(va_list arg)
{
int n = va_arg(arg, int);
unsigned int nb;
int tab[10];
long int n = va_arg(arg, long int);
long unsigned int nb;
int tab[20];
int i, j, count = 0;
char a[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8',
'9', 'a', 'b', 'c', 'd', 'e', 'f'};
Expand Down Expand Up @@ -57,9 +57,9 @@ int print_x(va_list arg)

int print_X(va_list arg)
{
int n = va_arg(arg, int);
unsigned int nb;
int tab[10];
long int n = va_arg(arg, long int);
long unsigned int nb;
int tab[20];
int i, j, count = 0;
char a[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8',
'9', 'A', 'B', 'C', 'D', 'E', 'F'};
Expand Down

0 comments on commit 9063dc1

Please sign in to comment.