GCC Code Coverage Report


Directory: ./
File: lib/my/my_putstr_sized.c
Date: 2024-06-05 00:29:21
Exec Total Coverage
Lines: 4 4 100.0%
Functions: 1 1 100.0%
Branches: 2 2 100.0%

Line Branch Exec Source
1 /*
2 ** EPITECH PROJECT, 2023
3 ** my_putstr_limited
4 ** File description:
5 ** Prints a string (str) in stdout
6 ** with a defined size (size)
7 */
8
9 #include "my.h"
10
11 1 int my_putstr_sized(char const *str, int size)
12 {
13
2/2
✓ Branch 0 taken 2 times.
✓ Branch 1 taken 1 times.
3 for (int i = 0; i < size; i++) {
14 2 my_putchar(str[i]);
15 }
16 1 return 0;
17 }
18