try out this
#include <......> // header files as
#include <......> // required by
#include <......> // application
void main(void)
{char mystring[21];
int ret_value=0;
memset(mystring, 0, sizeof(mystring));
ret_value=Get_Input(mystring, column, row, length, .....other para)
{...
...
code to check return value
}
}
int Get_Input(char *txt,int col, int row,int length,int type)
the function Get_Input would have to be written explicitly by u to accept the character values and check the length. U can also set the row, column, foreground and background colors and any other validations if required.