A

@aabouqas

f

C
2 years ago
#include <stdio.h> int ft_sqrt(int nb) { long i; long n; i = 0; n = nb; while (i <= n) {

prt

C
2 years ago
#include <stdio.h> #include <string.h> #include <stdlib.h> char *ft_strdup(char *src) { char *str; str = malloc(1); str = src; return str; }

ghjytdjydkg

C
2 years ago
#include <stdio.h> int ft_is_prime(int nb) { int i = 2; while (i < nb / 2) { if (nb % i == 0) return (0); i++;

/jkj

C
2 years ago
#include <stdio.h> #include <math.h> int ft_sqrt(int nb) { int i = 0; while ((i*i) != nb) { if (i > nb) return 0 ; i++;

ft_atoi

C
2 years ago
#include <stdio.h> int ft_atoi(char *str) { int s; int r; s = 1; r = 0; while (*str > '9') break ;

atois

C
2 years ago
#include <stdio.h> int ft_atoi(char *str) { int result = 0; int index = 0; int sign = 1; while (str[index] != '\0' && str[index] < '0' && str[index] > '9') { sign = sign * (-1); index++;

prtlite

C
2 years ago
#include <unistd.h> #include <stdarg.h> void prtlite(char args[],...) { va_list l; va_start(l,args); char cc[] = ""; int i = 0; while(args[i])

power

C
2 years ago
#include <stdio.h> int ft_iterative_power(int nb, int power) { int i = nb; while (power > 1) { i = i * nb; power--; } return (i);

ft_atoi

C
2 years ago
#include <stdio.h> int ft_atoi(char *str) { int index; int result; int sign = 1; index = 0; while (str [index] != '\0' && (str[index] < '0' || str[index] > '9')) { if (str[index] == '-')

put number

C
2 years ago
#include <unistd.h> void ft_putnbr(int nb) { char charachter; if (nb <= (-2147483648)) { write (1, "-2147483648", 11); } else { if (nb < 0) {

nbr

C
2 years ago
#include <unistd.h> void ft_putnbr(int nb) { char c; unsigned int num; /*if (nb < 10) { if (nb < 0) {

strncat

C
2 years ago
#include <stdio.h> #include <string.h> int length(char *str) { int index; index = 0; while (str[index] != '\0') { index++;

strstr

C
2 years ago
#include <stdio.h> char *ft_strstr(char *str, char *to_find) { int same = 0; int i = 0; while (*str) { while (*str == to_find[i]) {

scmp

C
2 years ago
#include <stdio.h> #include<string.h> int ft_strcmp(char *s1, char *s2) { int index; index = 0; while (s1[index] != '\0' && s2[index] != '\0') {

strstr

C
2 years ago
#include <stdio.h> char *ft_strstr(char *str, char *to_find) { int i; while (*str) { i = 0; while (str[i] != '\0' && str[i] == to_find[i])

strncat

C
2 years ago
#include <stdio.h> #include <string.h> int length(char *str) { int index; index = 0; while (str[index] != '\0') {

ft_strstr

C
2 years ago
#include <stdio.h> int length(char *str) { int index; index = 0; while (str[index] != '\0') { index++; }

ft_strcapitalize

C
2 years ago
#include <stdio.h> char *ft_strcapitalize(char *str) { int index = 0; while (str[index] != '\0') { if (str[index] >= 'A' && str[index] <= 'Z') { str[index] = str[index] + 32;

strcmp

C
2 years ago
#include <stdio.h> #include <string.h> int ft_strncmp(char *s1, char *s2, unsigned int nb) { unsigned int index = 0; while (s1[index] != '\0' || s2[index] != '\0' && index < nb) { if (s1[index] != s2[index]) { return (s1[index] - s2[index]);

strcapitalize

C
2 years ago
#include <stdio.h> #include <string.h> char *ft_strcapitalize(char *str) { int index; index = 0; while (str[index] != '\0') { if ((str[index] >= 'a' && str[index] <= 'z')