apexys / avr-uip

Automatically exported from code.google.com/p/avr-uip
0 stars 0 forks source link

Error in Function 'uiplib_ipaddrconv' od uiplib.c #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Line no 59.
"if(c == '.' || c == 0) {"

'0' should be a Null char(string termination)
"if(c == '.' || c == '\0') {"

Original issue reported on code.google.com by dhawal.r...@gmail.com on 24 Oct 2012 at 8:32

GoogleCodeExporter commented 9 years ago
'\0' is == 0

just it is a char size number whose value is zero.

The compiler may complain that the compare is between an char and int types 
but, the code will run the same.

Original comment by qarc...@gmail.com on 10 Nov 2012 at 3:09