base struct
This commit is contained in:
21
lib/libft/srcs/str/ft_toupper.c
Normal file
21
lib/libft/srcs/str/ft_toupper.c
Normal file
@@ -0,0 +1,21 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_toupper.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: nalebrun <nalebrun@student.s19.be> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/12 12:01:30 by nalebrun #+# #+# */
|
||||
/* Updated: 2024/11/27 12:58:24 by nalebrun ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../../libft.h"
|
||||
|
||||
int ft_toupper(int c)
|
||||
{
|
||||
if (c >= 97 && c <= 122)
|
||||
return (c - 32);
|
||||
else
|
||||
return (c);
|
||||
}
|
||||
Reference in New Issue
Block a user