What does this pointer-heavy C code do?
Posted
by
justRadojko
on Stack Overflow
See other posts from Stack Overflow
or by justRadojko
Published on 2014-06-07T15:19:01Z
Indexed on
2014/06/07
15:24 UTC
Read the original article
Hit count: 152
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.
© Stack Overflow or respective owner