30 lines
1.0 KiB
C
30 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* ft_strupp.c :+: :+: :+: */
|
|
/* +:+ */
|
|
/* By: djonker <marvin@codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2021/01/31 05:49:38 by djonker #+# #+# */
|
|
/* Updated: 2023/02/07 00:41:13 by houtworm ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "../libft.h"
|
|
|
|
char *ft_strupp(char *s)
|
|
{
|
|
char r[5000];
|
|
int i;
|
|
|
|
i = 0;
|
|
while (s[i])
|
|
{
|
|
r[i] = ft_toupper(s[i]);
|
|
i++;
|
|
}
|
|
r[i] = '\0';
|
|
s = r;
|
|
return (s);
|
|
}
|