-
Notifications
You must be signed in to change notification settings - Fork 0
/
ternary.txt
48 lines (46 loc) · 1.44 KB
/
ternary.txt
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
==119== Memcheck, a memory error detector
==119== Copyright (C) 2002-2017, and GNU GPL'd, by Julian
Seward et al.
==119== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==119== Command: ./ternary
==119==
Enter number from 0-100:
-1
Invalid number! Try again.
101
Invalid number! Try again.
25
Valid!
Number is less than 50.
==119==
==119== HEAP SUMMARY:
==119== in use at exit: 0 bytes in 0 blocks
==119== total heap usage: 2 allocs, 2 frees, 2,048 bytes allocated
==119==
==119== All heap blocks were freed -- no leaks are possible
==119==
==119== For lists of detected and suppressed errors, rerun with: -s
==119== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
==120== Memcheck, a memory error detector
==120== Copyright (C) 2002-2017, and GNU GPL'd, by Julian
Seward et al.
==120== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info
==120== Command: ./ternary
==120==
Enter number from 0-100:
-5
Invalid number! Try again.
102
Invalid number! Try again.
75
Valid!
Number is greater than 50.
==120==
==120== HEAP SUMMARY:
==120== in use at exit: 0 bytes in 0 blocks
==120== total heap usage: 2 allocs, 2 frees, 2,048 bytes allocated
==120==
==120== All heap blocks were freed -- no leaks are possible
==120==
==120== For lists of detected and suppressed errors, rerun with: -s
==120== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)