// Copyright (c) 2002 David Muse // See the file COPYING for more information #include #include #ifdef RUDIMENTS_NAMESPACE using namespace rudiments; #endif // this function takes addr[]={127,1,1,0} and returns "127.1.1.0" char *getAddressString(int length, const char *addr) { char *address=new char[(length*4)+1]; address[0]=(char)NULL; for (int byte=0; byte