Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- struct node{
- int times;
- char name[100];
- char number[100];
- struct node* next;
- };
- typedef struct node* node;
- void mklist(node* n){
- (*n)->times=0;
- strcpy((*n)->name,"null");
- strcpy((*n)->number,"null");
- (*n)->next=(node)NULL;
- }
- int main(void){
- node n;
- mklist(&n);
- return 0;
- }
Add Comment
Please, Sign In to add comment