Sample Program : Program Description : Program Definitions

Program Definitions
#define GET_STR(S)
{int i; for (i=0;(S[i++] = getchar())!=’\n’;);
S[--i]=’\0’;}
 

This defines a routine to read characters entered at the keyboard.