title: Linked List in C
body: <p>When I compile this program I get an error in line 45 (commented) saying incompatible implicit declaration of strcpy...I copied part of that code and hopefully you guys can help me figure this out</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  #include &lt;stdlib.h&gt;
  
  #define strsize 30
  
  typedef struct member
  {int number;
  char fname[strsize];
  struct member *next;
  }
  RECORD;
  
  RECORD* insert (RECORD *it);
  RECORD* print(RECORD *it, int j);
  
  int main (void)
  {
  int i, result;
  RECORD *head, *p;
  head=NULL;
  printf("Enter the number of characters: ");
  scanf("%d", &amp;result);
  
  for (i=1; i&lt;=result; i++)
  head=insert (head);
  print (head, result);
  
  return 0;
  
  }
  
  RECORD* insert (RECORD *it)
  
  {
  
  RECORD *cur, *q;
  int num;
  char junk;
  char first[strsize];
  printf("Enter a character:");
  scanf("%c", &amp;first);
  
  cur=(RECORD *) malloc(sizeof(RECORD));
  
  strcpy(cur-&gt;fname, first);
  cur-&gt;next=NULL;
  
  if (it==NULL)
  it=cur;
  
  else
  {
  q=it;
  while (q-&gt;next!=NULL)
  q=q-&gt;next;
  q-&gt;next=cur;
  }
  return (it);
  }
  RECORD* print(RECORD *it, int j)
  {
  RECORD *cur;
  cur=it;
  int i;
  for(i=1;i&lt;=j;i++)
  {
  printf("%c \n", cur-&gt;fname);
  cur=cur-&gt;next;
  }
  return;
  }
  </code></pre>
  
  <p>using GCC to complie</p>