Help with array : How to compare

Hi Pauls, you mean in this way

/* memcmp example */
#include <stdio.h>
#include <string.h>

int main ()
{
  char str1[256];
  char str2[256];
  int n;
  printf ("Enter a sentence: "); gets(str1);
  printf ("Enter another sentence: "); gets(str2);
  n=memcmp ( str1, str2, 256 );
  if (n>0) printf ("'%s' is greater than '%s'.\n",str1,str2);
  else if (n<0) printf ("'%s' is less than '%s'.\n",str1,str2);
  else printf ("'%s' is the same as '%s'.\n",str1,str2);
  return 0;
} 


If the result it's 0 that means that equal correct ?

however thanks for the help,

Andrea