Menu

imamLL / Blog: Recent posts

Store struct elements

As imamLL is very versatile in storing any type of data into a list, you can store struct into an element like shown in the following code example:

~~~~~~

include <stdio.h></stdio.h>

include <stdlib.h></stdlib.h>

include <string.h></string.h>

include "imamll.h"

struct Person {
char name[24];
double age;
double weight;
double height;
};

struct imamLL People_list = NULL; / Pointer to hold list /
struct imamLL_element
person = NULL; / Pointer to hold individual element /
unsigned long c;... read more

Posted by Imam 2015-07-21 Labels: struct
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.