This commit is contained in:
Camille Chauvet
2023-05-17 16:45:25 +00:00
commit 29ed24d567
619 changed files with 16119 additions and 0 deletions

View File

@ -0,0 +1,30 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strupcase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: thellego <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/17 12:25:28 by thellego #+# #+# */
/* Updated: 2022/07/17 13:06:29 by thellego ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strupcase(char *str)
{
int counter;
counter = 0;
while (str[counter])
{
if (97 <= str[counter] && str[counter] <= 122)
str[counter] = str[counter] - 32;
counter++;
}
return (str);
}
/* int main(){
char tab1[120] = "Hyurga uriaujhdljhnb9";
ft_strupcase(tab1);
printf("%s", tab1);
} */