| Line | Branch | Exec | Source | 
|---|---|---|---|
| 1 | /* | ||
| 2 | ** EPITECH PROJECT, 2023 | ||
| 3 | ** my_putstr_error | ||
| 4 | ** File description: | ||
| 5 | ** Prints a string (str) in stderr | ||
| 6 | */ | ||
| 7 | /** | ||
| 8 | * @file my_putstr_error.c | ||
| 9 | * @brief The file containing the my_putstr_error function | ||
| 10 | * @author Nicolas TORO | ||
| 11 | */ | ||
| 12 | |||
| 13 | #include "my.h" | ||
| 14 | |||
| 15 | 71 | int my_putstr_error(char const *str) | |
| 16 | { | ||
| 17 | 2/2✓ Branch 0 taken 1 times. ✓ Branch 1 taken 70 times. | 71 | if (str == NULL) | 
| 18 | 1 | return 84; | |
| 19 | 70 | write(2, str, my_strlen(str)); | |
| 20 | 70 | return 84; | |
| 21 | } | ||
| 22 |