Thread: QuickSorting
View Single Post
  #2 (permalink)  
Old May 26th, 2004, 12:26 PM
Antony Antony is offline
Authorized User
 
Join Date: Apr 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Antony
Default

IP addresses are having 4 nos. Where you are doing the sorting?

I think, you should do fgets and memmove to 4 integers.
you can use longs for the other two.
your structure should be something like this,

int ip1;
int ip2;
int ip3;
int ip4;
long request;
long bytes;

then u do the sorting.
hope u can do it.


Antony
Reply With Quote