Chris Costello writes:
On Wednesday, August 02, 2000, Mike Smith wrote:
tcpcash_addr = (typeof(tcpcash_addr))
malloc(sizeof(*tcpcash_addr) *
TCPCASH_ROWSIZE *
TCPCASH_COOLSIZE);
Just as a note on coding
On Fri, 4 Aug 2000, Aleksandr A.Babaylov wrote:
Chris Costello writes:
On Wednesday, August 02, 2000, Mike Smith wrote:
tcpcash_addr = (typeof(tcpcash_addr))
malloc(sizeof(*tcpcash_addr) *
TCPCASH_ROWSIZE *
Chris Costello wrote:
On Wednesday, August 02, 2000, [EMAIL PROTECTED] wrote:
Sorry I have no other direction to ask this:
I have declaration:
u_int32_t *(tcpcash_addr[256]);
and want malloc some memory for tcpcash_addr:
tcpcash_addr =
Yes, and whan I use u_int32_t *(tcpcash_addr[256]) declaration,
I can use tcpcash_addr[x][y], and I must use
tcpcash_addr[x * 256 + y] if declaration is u_int32_t *tcphash_haddr,
I cant use if u_int32_t **tcphash_haddr,
because of need of array of pointers in addition to array of arrays,
It's only "clear" insofar as it's "clear" that the code is terrible.
Coffee first, critique second. 8)
#define TCPCASH_ROWSIZE 256
#define TCPCASH_COLSIZE 256
#define TCPCASH_ADDR(x) ((x) * TCPCASH_ROWSIZE)
#define TCPCASH_ADDR(x,y) ((y) * TCPCASH_ROWSIZE + (x))
--
[Charset iso-8859-1 unsupported, filtering to ASCII...]
It's only "clear" insofar as it's "clear" that the code is terrible.
Sorry I know English bad, do you want to say that my code is terrible?
Coffee first, critique second. 8)
#define TCPCASH_ROWSIZE 256
#define TCPCASH_COLSIZE
On Wednesday, August 02, 2000, Mike Smith wrote:
tcpcash_addr = (typeof(tcpcash_addr))
malloc(sizeof(*tcpcash_addr) *
TCPCASH_ROWSIZE *
TCPCASH_COOLSIZE);
Just as a note on coding style, this will
Sorry I have no other direction to ask this:
I have declaration:
u_int32_t *(tcpcash_addr[256]);
and want malloc some memory for tcpcash_addr:
tcpcash_addr = (typeof(tcpcash_addr))malloc(u_int32_t * 256 * n);
and have an error:
ra-sum.c:386: cast specifies array type
*** Error code 1
How
On Wednesday, August 02, 2000, [EMAIL PROTECTED] wrote:
Sorry I have no other direction to ask this:
I have declaration:
u_int32_t *(tcpcash_addr[256]);
and want malloc some memory for tcpcash_addr:
tcpcash_addr = (typeof(tcpcash_addr))malloc(u_int32_t * 256 * n);
and have an error:
Chris Costello wrote:
On Wednesday, August 02, 2000, [EMAIL PROTECTED] wrote:
Sorry I have no other direction to ask this:
I have declaration:
u_int32_t *(tcpcash_addr[256]);
and want malloc some memory for tcpcash_addr:
tcpcash_addr = (typeof(tcpcash_addr))malloc(u_int32_t *
10 matches
Mail list logo