/*
  String copy demonstration

  Bill Slough
  MAT 4970
*/

#include <stdio.h>
#include <string.h>

#define MAX_STRING_LENGTH 80

int main(void) {

    char destination[MAX_STRING_LENGTH + 1];
    char source[] = "The quick brown fox jumps over the lazy dog.";

    /* Make a copy of the source string */
    strcpy(destination, source);

    /* Output the result of the copy, then test for equality */
    printf("destination = \"%s\"\n", destination);
    if (strcmp(source, destination) == 0)
	printf("source and destination strings agree.\n");
    else
	printf("source and destination strings do NOT agree.\n");
    
    return 0;
}


