Madness
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
currentIE = (UplinkMapIE*)malloc((uplinkMap->numberUL_MAP_IE + 2) * sizeof(UplinkMapIE)); Can anyone explain whats going on here at all? Thanks in advance Ste
-
currentIE = (UplinkMapIE*)malloc((uplinkMap->numberUL_MAP_IE + 2) * sizeof(UplinkMapIE)); Can anyone explain whats going on here at all? Thanks in advance Ste
it's allocating (uplinkMap->numberUL_MAP_IE + 2) * sizeof(UplinkMapIE) bytes. sizeof(UplinkMapIE) is the size of the UplinkMapIE structure (or class). so, it's allocating room for (uplinkMap->numberUL_MAP_IE + 2) UplinkMapIE structs. then it's assigning the return from malloc to a pointer to an UplinkMapIE. Cleek | Image Toolkits | Thumbnail maker