21 lines
1004 B
C
21 lines
1004 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_toupper.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2024/07/05 18:42:12 by whaffman #+# #+# */
|
|
/* Updated: 2024/07/08 15:53:24 by whaffman ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
int ft_toupper(int c)
|
|
{
|
|
if ('a' <= c && 'z' >= c)
|
|
return (c - 'a' + 'A');
|
|
return (c);
|
|
}
|