Warning: comparison between pointer and integer??

< H2 > Code < / H2 >

tag: my_fgets.c

[root@server0 fgets]-sharp gcc -c my_getline.c
my_getline.c: In function  "my_getline" :
my_getline.c:7:36: warning: comparison between pointer and integer [enabled by default]
     if ( (my_fgets(line, max, fp)) == NULL)
                                    ^

Why is there such an error?

C
Jul.01,2021

the code you posted is not the same as the code that reported the error, okay?


I asked the question on stackoverflow and got the answer:
https://stackoverflow.com/que.

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2319c-2b667.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2319c-2b667.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?