some norm changes

This commit is contained in:
Jack Halford 2016-11-03 19:07:43 +01:00
parent fa965ec5ec
commit 47d7271b7f
12 changed files with 136 additions and 4 deletions

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sstradd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:03:58 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:04:23 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char **ft_sstradd(char **sstr, char *new)

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sstrdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:04:07 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:04:08 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_sstrdel(char **sstr, int index)

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sstrdup.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:04:13 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:04:13 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char **ft_sstrdup(char **list)

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sstrprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:04:15 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:04:15 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_sstrprint(char **list, char sep)

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sstrsort.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:03:37 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:04:17 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_sstrsort(char **list, int size, int (*cmp)())

View file

@ -6,7 +6,7 @@
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/08/07 23:31:20 by jhalford #+# #+# */
/* Updated: 2016/08/25 17:32:17 by jhalford ### ########.fr */
/* Updated: 2016/11/03 18:03:07 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
@ -57,7 +57,8 @@ static int ft_check_str(char *str, char *base, int base_size)
return (1);
}
char *ft_convert_base(char *str, char *base_from, char *base_to, char *flags)
char *ft_convert_base(
char *str, char *base_from, char *base_to, char *flags)
{
int base_size;
int res;

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str3join.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:03:26 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:03:26 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_str3join(char const *s1, char const *s2, char const *s3)

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcut.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:04:37 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:04:37 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcut(char *str, char *cut)

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strrev.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:01:36 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:01:36 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strrev(char *str)

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_time_isrecent.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:01:04 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:01:19 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_time_isrecent(time_t event)
@ -5,7 +17,7 @@ int ft_time_isrecent(time_t event)
time_t now;
now = time(&now);
if (now - event > 0 && now - event < 6*365/12*24*60*60)
if (now - event > 0 && now - event < 6 * 365 / 12 * 24 * 60 * 60)
return (1);
else
return (0);

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_xattr_count.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:00:52 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:00:56 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_xattr_count(char *path)
@ -9,7 +21,6 @@ int ft_xattr_count(char *path)
i = 0;
ft_bzero(list, FT_XATTR_SIZE);
/* printf("looking for xattr at: %s\n", path); */
listlen = listxattr(path, list, FT_XATTR_SIZE, XATTR_NOFOLLOW);
if (listlen == -1)
return (-1);

View file

@ -1,3 +1,15 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_xattr_print.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/03 18:00:43 by jhalford #+# #+# */
/* Updated: 2016/11/03 18:00:44 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_xattr_print(char *path)