mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 07:34:16 +00:00
feat: add ft_toupper function
This commit is contained in:
8
ft_toupper.c
Normal file
8
ft_toupper.c
Normal file
@@ -0,0 +1,8 @@
|
||||
#include "libft.h"
|
||||
|
||||
int ft_toupper(int c)
|
||||
{
|
||||
if ('a' <= c && c <= 'z')
|
||||
c -= 32;
|
||||
return (c);
|
||||
}
|
||||
Reference in New Issue
Block a user