axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nadir Amra <a...@us.ibm.com>
Subject Stub::SetSecure() question
Date Fri, 28 Apr 2006 05:19:24 GMT
There is a line of code that I do not quite understand in Stub::SetSecure. 
 Here is the routine:

    va_list args;
    char *  pszArg = NULL;
 
    va_start( args, pszArguments);
 
    if( (pszArg = pszArguments) != NULL)
    {
        do
        {
            if( pszArg == (char *) 1)
                m_sArguments[iArgIndex] = "true";
            else
                m_sArguments[iArgIndex] = pszArg;

            iArgIndex++;
        } 
        while( (pszArg = va_arg( args, char *)) != NULL && iArgIndex < 8);

        if( iArgIndex == 6)
            m_sArguments[iArgIndex] = "false";
    }

    va_end( args);

The line I do not understand is 

            if( pszArg == (char *) 1)

Can someone please explain how this works?

Nadir K. Amra


Mime
View raw message