Guest User

Untitled

a guest
May 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4.  
  5. struct node{
  6. int times;
  7. char name[100];
  8. char number[100];
  9. struct node* next;
  10. };
  11.  
  12. typedef struct node* node;
  13.  
  14. void mklist(node* n){
  15. (*n)->times=0;
  16. strcpy((*n)->name,"null");
  17. strcpy((*n)->number,"null");
  18. (*n)->next=(node)NULL;
  19. }
  20.  
  21. int main(void){
  22. node n;
  23. mklist(&n);
  24. return 0;
  25. }
Add Comment
Please, Sign In to add comment