#include
#include
#include
int main(void)
{
char text[100];
printf("\nEnter the string to be searched(less than 100 characters):\n");
fgets(text, sizeof(text), stdin);
text[strlen(text)-1] = '\0';
printf("%s",text);
}
Enter the string to be searched(less than 100 characters):
string