42 lines
1.4 KiB
C
42 lines
1.4 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gbaconni <gbaconni@42lausanne.ch> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2021/08/22 14:55:33 by gbaconni #+# #+# */
|
|
/* Updated: 2021/08/22 17:19:48 by gbaconni ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "ft.h"
|
|
|
|
int main(void)
|
|
{
|
|
int a;
|
|
int b;
|
|
int r;
|
|
|
|
printf("ft_putchar: (expected Z)\n");
|
|
ft_putchar('Z');
|
|
printf("\n\n");
|
|
a = 42;
|
|
b = 21;
|
|
printf("ft_swap: (expected a=21 b=42)\n");
|
|
ft_swap(&a, &b);
|
|
printf("a=%d b=%d\n\n", a, b);
|
|
printf("ft_putstr: (expected hello)\n");
|
|
ft_putstr("hello\n\n");
|
|
printf("ft_strlen: (expected 5)\n");
|
|
r = ft_strlen("hello");
|
|
printf("%d\n\n", r);
|
|
printf("ft_strcmp: (expected 0)\n");
|
|
r = ft_strcmp("abc","abc");
|
|
printf("%d\n\n", r);
|
|
}
|