-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strtabrealloc.c
executable file
·25 lines (22 loc) · 1.08 KB
/
ft_strtabrealloc.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strtabrealloc.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <tseguier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/12/29 05:51:57 by tseguier #+# #+# */
/* Updated: 2014/03/27 18:40:50 by jcoignet ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_strtabrealloc(char ***strtab, int addsize)
{
char **newtab;
newtab = ft_strtabcpy(*strtab, addsize);
if (!newtab)
return (-1);
ft_strtabdel(strtab);
*strtab = newtab;
return (0);
}