/* exampleInitOfNameArray.c    

   P. Conrad  test to see if a particular kind of string
   initialization works */

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

#define MAX_SERVERS 10
#define SERVER_NAME_LEN_MAX 20

int main(void)

{

  int i;
  char serverNames[MAX_SERVERS][SERVER_NAME_LEN_MAX]={""};


  /* this loop shows whether this correctly initializes
     all elements of the array to be the empty string */

  for (i=0; i<MAX_SERVERS; i++)
    {
      printf("strlen(serverNames[i])=%d\n",strlen(serverNames[i]));
      printf("serverNames[i])=[%s]\n",serverNames[i]);
      printf("strcmp(serverNames[i],"")=%d\n",strcmp(serverNames[i],""));
      

    }
  return 0;

}

