All pastes #200973 Raw Edit

Untitled

public c v1 · immutable
#200973 ·published 2006-10-13 14:31 UTC
rendered paste body
struct s_stock_par{  int  size_param;     /* longueur du parametre */  char *str;           /* adresse du parametre  */  char *copy;          /* copie du parametre    */  char **tab;          /* renvoye par my_str_to_wordtab  */};struct s_stock_par      *my_param_to_tab(int ac, char **av){struct s_stock_par      var;struct s_stock_par      params; int                    i; i = 0; var.size_param = ac; *(var.str) = &av; **(var.tab) = my_str_to_wordtab(av); params = (struct s_stock_par     *) (malloc (ac * sizeof(struct s_stock_par))); my_strcpy(params.copy, av); while (params[i] != '\0')   {     av[i] = params[i];     i++;   }}int     main(int ac, char **av){  my_param_to_tab(ac, av);  return(0);}