
/* BUG ZONE!!!
Example: some common string errors */

#include <stdio.h>
#include <strings.h>  /* BUG */

main()
{
  char thing[];
  char *wing;
  char string[41];
  char name[5] = "David";  /* BUG */
  
  thing = "What is this thing called love?";  /* BUG */
  string = "How long is a piece of string?";  /* BUG */
  
  puts("Enter a word, not more than 10 characters: ");
  scanf("%s", &string);  /* BUG */
  
  puts("Enter a sentence, not more than 40 characters: ");
  scanf("%s", string);  /* BUG */
  
  strcpy(name, "Frankenstein");  /* BUG */
  strcpy(wing, "Oh, for the wings of a dove!");  /* BUG */
  strcpy("Elvis Presley", string);  /* BUG */
  strcat(name, "Sir Isaac Newton");  /* BUG */

/* checkout strcmp: =0,<0,>0 if s1==s2,s1<s2,s1>s2 
then strncmp*/

}
