Y

@y42

main.c test_libft

C
3 hours ago
#include <stdio.h> #include "libft.h" int main(void) { printf("isalpha : %d\n", ft_isalpha('A')); printf("isdigit : %d\n", ft_isdigit('5')); printf("isalnum : %d\n", ft_isalnum('5')); printf("isascii : %d\n", ft_isascii('65')); printf("isprint

Makefile

C
1 day ago
NAME = libft.a CC = cc CFLAGS = -Wall -Wextra -Werror SRCS = $(wildcard ft_*.c) OBJS = $(SRCS:.c=.o) all: $(NAME)

ft_strlen.c

C
3 days ago
#include <stdio.h> int ft_strlen(char *str) { int i; i = 0; while (str[i]) { i++;

ft_isprint.c

C
3 days ago
#include <stdio.h> int ft_isprint(int c) { if (c >= 32 && c <= 126) { return (1); } else {

ft_isascii.c

C
3 days ago
#include <stdio.h> int ft_isascii(int c) { if (c >= 0 && c <= 127) { return (1); } else {

libft.h

C
3 days ago
#ifndef LIBFT_H # define LIBFT_H int ft_isalpha(int c); int ft_isdigit(int c); int ft_isalnum(int c); int ft_isascii(int c); int ft_isprint(int c); int ft_strlen(char *str); int ft_tolower(int c);

ft_isalnum

C
3 days ago
#include <stdio.h> int ft_isalnum(int c) { if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z') || (c >= '0' && c <= '9')) { return (1); } else

ft_isdigit

C
4 days ago
#include <stdio.h> int ft_isdigit(int c) { if ((c >= '0' && c <= '9')) { return (1); } else {

ft_isalpha.c

C
4 days ago
#include <stdio.h> int ft_isalpha(int c) { if ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) { return (1); } else {

Exam buzz

C
3 weeks ago
#include <stdio.h> #include <unistd.h> void ft_putchar(char c) { write(1, &c, 1); } void ft_putnbr(int nbr) {

Exam buzz

C
3 weeks ago
#include <stdio.h> #include <unistd.h> void ft_putchar(char c) { write(1, &c, 1); } void ft_putnbr(int nbr) {

Exam buzz

C
3 weeks ago
#include <stdio.h> #include <unistd.h> void ft_putchar(char c) { write(1, &c, 1); } void ft_putnbr(int nbr) {

Exam buzz

C
3 weeks ago
#include <stdio.h> #include <unistd.h> void ft_putchar(char c) { write(1, &c, 1); } void ft_putnbr(int nbr) {

Exam buzz

C
3 weeks ago
#include <stdio.h> #include <unistd.h> void ft_putchar(char c) { write(1, &c, 1); } void ft_putnbr(int nbr) {

Exam buzz

C
3 weeks ago
#include <stdio.h> #include <unistd.h> void ft_putchar(char c) { write(1, &c, 1); } void ft_putnbr(int nbr) {

Exam buzz

C
3 weeks ago
#include <stdio.h> #include <unistd.h> void ft_putchar(char c) { write(1, &c, 1); } void ft_putnbr(int nbr) {

1_to_100.c

C
3 weeks ago
#include <stdio.h> #include <unistd.h> void ft_putchar(char c) { write(1, &c, 1); } void ft_putnbr(int nbr) {

magic_inc.php

PHP
3 weeks ago
<?php function magic_inc($value, $direction) { if (!is_numeric($value) || $value == 0) { return 0; } $number = (float) $value; $sign = $number < 0 ? -1 : 1; $abs = abs($number);

ft_fibonacci.c

C
3 weeks ago
#include <unistd.h> #include <stdio.h> int ft_fibonacci(int index) { if (index < 0) return (-1); if (index == 0) return (0); if (index == 1)

ft_recursive_power.c

C
3 weeks ago
#include <unistd.h> #include <stdio.h> int ft_recursive_power(int nb, int power) { if (power < 0) return (0); if (power == 0) return (1);