I looked through the functions in the manual, but I still do not understand this. According to the person who wrote the code, if the user enters "y", then a function will be executed (not shown here). However, because of !it, it seems to me that a function (not shown here) will be executed if the user enters something other than "y".
!
Please explain (I am a relative newbie as detailed as possible).
if(!strncasecmp(trim(fgets(STDIN)),'y',1))
fgets(STDIN) - reads a line from standard input (keyboard in your case).
fgets(STDIN)
trim - , . , ' y' 'y ', 'y'
trim
' y'
'y '
'y'
strncasecmp - Y, Y, . 0, , ! ( ), 0 1, if.
strncasecmp
Y
0
1
if
:
if(strncasecmp(trim(fgets(STDIN)),'y',1) == 0)
strncasecmp 0, , !, , .