What do I have to add to this code to restrict the maximum number of characters per line? Any help would be appreciated.Code:void formattingText() { int maxNoChars; char inputSentence[maxFormattingTextSize]; printf("Formatting Text\n"); printf("-------------------------\n\n"); printf("Enter an integer (maximal no of chars per line) :\n"); scanf("%d", &maxNoChars)/ printf("Enter some sentences (between 150 - 200 chars) :\n\n"); inputSentence == fgets(inputSentence,maxFormattingTextSize,stdin); inputSentence == fgets(inputSentence,maxFormattingTextSize,stdin); /*gets(inputSentence);*/ printf("Formatted text:\n"); /*printf("%5d", inputSentence);*/ printf("%s", inputSentence); }