| 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 | #include <unistd.h> | ||
| 9 | |||
| 10 | 1 | int my_putstr_error(char const *str) | |
| 11 | { | ||
| 12 | 1 | int i = 0; | |
| 13 | |||
| 14 |
2/2✓ Branch 0 taken 2 times.
✓ Branch 1 taken 1 times.
|
3 | while (str[i] != '\0') { |
| 15 | 2 | write(2, &str[i], 1); | |
| 16 | 2 | i = i + 1; | |
| 17 | } | ||
| 18 | 1 | return 0; | |
| 19 | } | ||
| 20 |