GCC Code Coverage Report


Directory: ./
File: lib/my/my_char_is_printable.c
Date: 2024-06-05 00:34:38
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 3 4 75.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2023
3 ** my_char_isprintable
4 ** File description:
5 ** Returns 1 if the characters (c) is printable or 0 if not
6 */
7 /**
8 * @file my_char_is_printable.c
9 * @brief The file containing the my_char_is_printable function
10 * @author Nicolas TORO
11 */
12
13 #include "my.h"
14
15 7 int my_char_is_printable(char const c)
16 {
17
3/4
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 2 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
7 if (c < 32 || c > 126)
18 2 return 0;
19 5 return 1;
20 }
21