Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void listing_init()
- {
- for(int i = 0; i < CHANNELS; i++)
- {
- listing[i] = epglist_create();
- }
- }
- void listing_add(struct entry* p)
- {
- for(int i = 0; i < CHANNELS; i++)
- {
- if(strcmp(channels[i], p->channel) == 0)
- {
- struct epgnode* new_node = (struct epgnode*) malloc (sizeof (struct epgnode));
- struct epgnode* tmp = listing[i];
- new_node->entry = p;
- new_node->next = tmp->next;
- tmp->next = new_node;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement