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.
I disagree with Andrew and Ion. You should never return a local (automatic) char* variable because the pointer is defined only for the function scope. At least, set the pointer returned by the function to static memory:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.