What does this pointer-heavy C code do?
- by justRadojko
Could someone explain to me what should two following lines do:
s.httpheaderline[s.httpheaderlineptr] = *(char *)uip_appdata;
++((char *)uip_appdata);
This is taken from uIP code for microcontrollers.
s - structure
httpheaderline - http packet presented as a string
httpheadrlineptr - integer value
uip_appdata - received ethernet packet (string)
If some more info is needed please let me know.
BTW. Eclipse is reporting an error on the second line with message Invalid lvalue in increment so i'm trying to figure out how to solve this.