Class KomodiaDNS::CDNSAnswer::
ConvertMS()
Base ClassesData ItemsConstructorsDestructorsFunctionsCustom CodeGo to hierarchy chart    Prev page: ~CDNSAnswerNext page: ConvertUL    Show member index
Private Function Declared in:
DNSAnswer.h

'Declaration' icon -- Shortcut to top of page. Declaration

static std::string ConvertMS(
    unsigned long ulNumber);

'Description' icon -- Shortcut to top of page. Description

of namespace

'Function Body' icon -- Shortcut to top of page. Function Body

//Our string
char aTmp[100];

//What are we
if (ulNumber<60)
    sprintf(aTmp," (%lu seconds)",ulNumber);
else if (ulNumber<3600)
    sprintf(aTmp," (%lu minutes)",ulNumber/60);
else if (ulNumber<86400)
    sprintf(aTmp," (%lu hours)",ulNumber/3600);
else
    sprintf(aTmp," (%lu days)",ulNumber/86400);

//Done
return aTmp;

'See Also' icon -- Shortcut to top of page. See Also

Class Overview Class Overview  |  Public base class CErrorHandler  |  Hierarchy Chart Hierarchy Chart


Get Surveyor!This web site was generated using Surveyor V4.50.811.1.  Click here for more information. Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003.