Answers for "myFgets in c"

C
0

myFgets in c

/*
	this function is better version of fgets
    input: the string and the len of the string
    output: NONE
*/

void myFgets(char str[], int n)
{
	fgets(str, n, stdin);
	str[strcspn(str, "n")] = 0;
}
Posted by: Guest on February-04-2022

Code answers related to "C"

Browse Popular Code Answers by Language