Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_generic.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: jcaudal <marvin@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2018/07/12 17:26:42 by jcaudal #+# #+# */
- /* Updated: 2018/07/13 14:21:42 by jcaudal ### ########.fr */
- /* */
- /* ************************************************************************** */
- void ft_generic(void)
- {
- char *tab;
- int i;
- tab = "Tut tut ; Tut tut\n";
- i = 0;
- while(i != 19)
- {
- write(1, &tab[i], 1);
- i++;
- }
- }
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_takes_places.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: jcaudal <marvin@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2018/07/12 18:36:42 by jcaudal #+# #+# */
- /* Updated: 2018/07/12 23:54:45 by jcaudal ### ########.fr */
- /* */
- /* ************************************************************************** */
- void ft_takes_places(int hour)
- {
- char *x;
- char *y;
- printf("THE FOLLOWING TAKES PLACE BETWEEN %d.00 %s AND %d.00 %s\n", valiable1, variable2, variable3, variable4);
- }
- touch -A -000001 bomb.txt 2> /dev/null | stat %X bomb.txt 2> /dev/null | cut -d '"' -f 6
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_antidote.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: jcaudal <marvin@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2018/07/13 01:59:04 by jcaudal #+# #+# */
- /* Updated: 2018/07/13 02:15:45 by jcaudal ### ########.fr */
- /* */
- /* ************************************************************************** */
- int ft_antidote(int i, int j,int k)
- {
- if (k<i<j || j<i<k)
- return (i);
- if (i<j<k || k<j<i)
- return (j);
- if (i<k<j || j<k<i)
- return (k);
- }
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_destroy.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: jcaudal <marvin@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2018/07/13 02:20:09 by jcaudal #+# #+# */
- /* Updated: 2018/07/13 03:31:36 by jcaudal ### ########.fr */
- /* */
- /* ************************************************************************** */
- void ft_destroy(char ***factory)
- {
- free(str);
- }
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_collatz_conjecture.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: jcaudal <marvin@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2018/07/13 03:41:24 by jcaudal #+# #+# */
- /* Updated: 2018/07/13 04:17:12 by jcaudal ### ########.fr */
- /* */
- /* ************************************************************************** */
- unsigned int ft_collatz_conjecture(unsigned int base)
- {
- n = base % 2
- if (n == 1)
- {
- return ((base *3)+1);
- ft_collatz_conjecture(base);
- }
- if (n == 0)
- {
- return (base / 2);
- ft_collatz_conjecture(base);
- }
- return (0);
- }
- #!/bin/sh
- var= ifconfig | grep inet' ' | grep -v 127.0.0.1 | cut -d' ' -f6-
- if [ -n "$var" ]
- then
- echo "I am lost!"
- fi
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_active_bits.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: jcaudal <marvin@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2018/07/13 11:10:33 by jcaudal #+# #+# */
- /* Updated: 2018/07/13 11:23:48 by jcaudal ### ########.fr */
- /* */
- /* ************************************************************************** */
- unsigned int ft_active_bits(int value)
- {
- return (sizeof(value));
- }
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_max.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: jcaudal <marvin@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2018/07/13 12:56:10 by jcaudal #+# #+# */
- /* Updated: 2018/07/13 13:20:52 by jcaudal ### ########.fr */
- /* */
- /* ************************************************************************** */
- int ft_max(int *tab, int length)
- {
- int i;
- int max;
- max = 0;
- i = length;
- while(i > -1)
- {
- if (tab[i] > max)
- {
- max = tab[i];
- }
- i--;
- }
- return (0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement