19 lines
990 B
C
19 lines
990 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_toupper.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2022/09/26 12:38:07 by cchauvet #+# #+# */
|
||
|
/* Updated: 2022/09/28 15:08:58 by cchauvet ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
int ft_toupper(int c)
|
||
|
{
|
||
|
return (c + ('A' - 'a') * (c >= 'a' && 'z' >= c));
|
||
|
}
|