Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <stdio.h>
- # include <stdlib.h>
- # define null 0
- struct list {
- char* value;
- struct list* next;
- };
- void print_list(struct list* _link) {
- int i = 0;
- while((int)*(_link[i].value) > 0) {
- printf("%s\n",_link[i].value);
- i++;
- }
- }
- int main(void) {
- struct list base[100];
- struct list* base_pointer = base;
- base[0].value = "Bbase";
- base[1].value = "cool";
- print_list(base_pointer);
- }
Add Comment
Please, Sign In to add comment