-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathutil_display.c
57 lines (46 loc) · 917 Bytes
/
util_display.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "util_display.h"
#include "util_comparator.h"
void char_display(const void *ch1)
{
printf("%c",CHARAT(ch1));
}
void int_display(const void *ch1)
{
printf("%d",INTAT(ch1));
}
void long_display(const void *ch1)
{
printf("%ld",LONGAT(ch1));
}
void float_display(const void *ch1)
{
printf("%f",FLOATAT(ch1));
}
void double_display(const void *ch1)
{
printf("%f",DOUBLEAT(ch1));
}
void long_double_display(const void *ch1)
{
printf("%f",LONGDOUBLEAT(ch1));
}
void unsigned_int_display(const void *ch1)
{
printf("%u",UNSIGNEDINTAT(ch1));
}
void unsigned_long_display(const void *ch1)
{
printf("%lu",UNSIGNEDLONGAT(ch1));
}
void string_display(const void *ch1)
{
printf("%s",(char *)ch1);
}
void long_long_display(const void *ch1)
{
printf("%lld",LONGLONGAT(ch1));
}
void unsigned_long_long_display(const void *ch1)
{
printf("%llu",UNSIGNEDLONGLONGAT(ch1));
}