mirror of
https://github.com/Ladebeze66/Piscine42.git
synced 2026-11-09 13:17:16 +01:00
Piscine42
This commit is contained in:
BIN
C02/ex07/.main.c.swo
Executable file
BIN
C02/ex07/.main.c.swo
Executable file
Binary file not shown.
25
C02/ex07/ft_strupcase.c
Executable file
25
C02/ex07/ft_strupcase.c
Executable file
@@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_strupcase.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: fgras-ca <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/12/08 08:28:11 by fgras-ca #+# #+# */
|
||||
/* Updated: 2022/12/10 11:01:18 by fgras-ca ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
char *ft_strupcase(char *str)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
while (str[i] != '\0')
|
||||
{
|
||||
if ((str[i] >= 97 && str[i] <= 122))
|
||||
str[i] -= 32;
|
||||
i++;
|
||||
}
|
||||
return (str);
|
||||
}
|
||||
Reference in New Issue
Block a user