Hello

I want to create a function read() that gets a string from the user and returns a char *

How can i do it?

Code:
char * read(){

	char string[101];
	
	fgets(string, 100, stdin);
	
	return string;

}
This way i get an error that i am trying to return a local variable