Re: dynamically growing 2D aray of structues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 25, 2009 at 9:17 PM,  <mauede@xxxxxxxx> wrote:
> I dare ask for some guidelines as I am not a programmer and never came
> across glib before.
> At the time being I have to embed some code into a package (Galopps: a
> Genetic Algorithm) which is totally implemented in C language.
> To be consistent with Galopps style I have to use glib functions.
> I have just started to use the simplest glib primitives and data types.
> Now I am stuck with the following problem. I know there are a lot of experts
> out there who can give me a couples of hints.
> I have to generate a 2D array of structures which grows dynamically in both
> directions.
> The structure is defined as follows:
>
> typedef struct {
>         gchar *id;
>         gchar *description;
>         gchar *sequence;
>         gint sequence_len;
>  } fasta_sequence;
>

Use a GArray:
   http://library.gnome.org/devel/glib/stable/glib-Arrays.html

Cheers,
      -Tristan

>
> Any suggestion is welcome.
> Thank you in advance,
> Maura
>
>
>
>
> Alice Messenger ;-) chatti anche con gli amici di Windows Live Messenger e
> tutti i telefonini TIM!
> Vai su http://maileservizi.alice.it/alice_messenger/index.html?pmk=footer
>
> _______________________________________________
> gtk-list mailing list
> gtk-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
>
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list


[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux