Libft and ftprintf added
This commit is contained in:
22
lib/libft/ft_toupper.c
Normal file
22
lib/libft/ft_toupper.c
Normal file
@@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_toupper.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/09/21 16:40:59 by aortigos #+# #+# */
|
||||
/* Updated: 2023/10/04 20:20:28 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
int ft_toupper(int c)
|
||||
{
|
||||
if (c >= 'a' && c <= 'z')
|
||||
{
|
||||
return (c - 32);
|
||||
}
|
||||
return (c);
|
||||
}
|
||||
Reference in New Issue
Block a user