#include struct db_entry { char* name; char* value; }; int main() { // this is really an array! struct db_entry* bands; // gimme two bands = malloc(2 * sizeof(struct db_entry)); bands[0].name = "pink floyd"; bands[0].value = "rocks"; bands[1].name = "steppenwolf"; bands[1].value = "is ok"; // release the memory free(bands); return 0; }