github to gitea

This commit is contained in:
lfirmin
2025-11-16 10:07:34 +01:00
commit a1d62a967e
10 changed files with 394 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strupcase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lfirmin <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/12 23:44:03 by lfirmin #+# #+# */
/* Updated: 2024/02/13 00:49:27 by lfirmin ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strupcase(char *str)
{
int c;
int maj;
maj = 'A' - 'a';
c = 0;
while (str[c] != '\0')
{
if (str[c] >= 'a' && str[c] <= 'z')
{
str[c] = str[c] + maj;
}
c++;
}
return (str);
}
/*#include <stdio.h>
int main(void)
{
char src[] = "Hello, World!";
printf("Source: %s\n", src);
ft_strupcase(src);
printf("Destination: %s\n", src);
return (0);
}*/