#include int main(void) { char *strs[4]; t_stock_str *tab; strs[0] = "First"; strs[1] = "Second"; strs[2] = "Third"; tab = ft_strs_to_tab(3, strs); printf("tab[0] element size:%d, str:'%s' (%p), copy:'%s' (%p)\n", tab[0].size, tab[0].str, tab[0].str, tab[0].copy, tab[0].copy); printf("tab[1] element size:%d, str:'%s' (%p), copy:'%s' (%p)\n", tab[1].size, tab[1].str, tab[1].str, tab[1].copy, tab[1].copy); printf("tab[2] element size:%d, str:'%s' (%p), copy:'%s' (%p)\n", tab[2].size, tab[2].str, tab[2].str, tab[2].copy, tab[2].copy); printf("tab[3] element size:%d, str:'%s' (%p), copy:'%s' (%p)\n", tab[3].size, tab[3].str, tab[3].str, tab[3].copy, tab[3].copy); return (0); }