Hi,

I am having some trouble with the mysql egg mostly die to my misunderstanding of c-pointers

With the egg you get data either by index or by name. What I would like is more something like this example from the mysql-api documentation

unsigned int num_fields;

unsigned int i;
MYSQL_FIELD *fields;

num_fields = mysql_num_fields(result);
fields = mysql_fetch_fields(result);
for(i = 0; i < num_fields; i++)
{
  printf("Field %u is %s\n", i, fields[i].name);
}

The egg provide the foreign-mysql-fetch-fields. it return a #<pointer> object

How can I extract the name from this object in scheme? I want to do what "fields[i].name" do in the example above?
Thanks

--



BuddyPilots <http://www.buddypilots.com>
*Jean-Philippe Théberge*
*Programmeur Architecte*
Tel: (514) 353-2307





_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to