Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8303779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:37:24+00:00 2026-06-08T17:37:24+00:00

EDIT: I have no choice but to code in C for this software, so

  • 0

EDIT: I have no choice but to code in C for this software, so keep this in mind.

I’m trying to use a parameter list where I compare data from sets of points. There might be a better way to do this but I think I need to call every other argument for comparison.

Basically the function call is as follows:

char * key1 is proprietary and refers to the unique id of a record in our database
OSI_RECORD is also proprietary and refering to a record number
GET_*_VALUE is also proprietary and is used to point to a specific field using a DOFRI

size_t LAST_OFF ( int argCount, char * key1, ... )
{
va_list     parmlist;
int         dS1, dS2, retValue, nextArg, max = 0;
char        * keyN;
char        * keyS;
OSI_RECORD  ptRecord1;
float       argMax;


va_start( parmlist, key1 );

    nextArg = 2;

    for (size_t i = 0; i < key1; i +=2)
    {

        keyN = va_arg( parmlist, char * );
        keyS = va_arg( parmlist, char * );

        dS2 = GET_STATUS ( keyS );

        if (dS2 = 1) 
        {
            ptRecord1 = GET_R (keyN, "STATUS");
            dS1 = GET_FLOAT_VALUE ( 10, 4, 31, ptRecord1, 0); 

            if ( dS1 > max );
            {
                max = ( dS1 );

                if (nextArg < argCount)
                {
                    argMax = (((float)nextArg + 1 ) / 2 );
                }

                else if (nextArg = argCount)
                {
                    argMax = (1);
                }

            }



        nextArg++;

        }

        else if (dS2 /= 1)
        {

            nextArg++;

        }

    }

    retValue = max;

va_end ( parmlist);

PUT_ANALOG ( key1, argMax );


}

EDIT: here is the current version of the calc. I’m sure there are plenty of things wrong with it but I’m having problems getting it to compile.

Here are the errors I’m getting from my compiler:

 error C2143: syntax error: missing ';' before 'type'
 error C2143: syntax error: missing ';' before 'type'
 error C2143: syntax error: missing ';' before 'type'
 error C2143: syntax error: missing ';' before 'type'
 warning C4047: '<' : 'int' diffes in levels of indirection from 'char *'
 warning C4552: '<' : operator has no effect; expected operator with side-effect
 error C2059: syntax error : ')'
 error C2143: syntax error : missing ':' before '{'
 warning C4244: '=' : conversion from 'float' to 'int', possible loss of data

All but the last two of these warnings are pointed at this line:

 for (size_t i = 0; i < key1; i +=2)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:37:25+00:00Added an answer on June 8, 2026 at 5:37 pm

    I ended up using struct to define my pairs. I was able to use my existing code with minimal modifications.

    typedef struct 
    {
        char * key1;
        char * key2;
    } UnitKeyPair;
    

    I passed the UnitKeyPairs into my parmlist fairly simply.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement this code to have different files to load for german,
I'm trying to have my AlertDialog with a custom list view but can't seem
EDIT: I have fixed all but two warnings now, so thank you all for
EDIT i have something like this in a file: imagecolor=0 arrayimagecolorcopy=0 arrayimagecolorcopy3d=0 when i
I have a customized ListView like this: List<Journal_Database> values = localDatabase.getAllJournalNames(); ListView journalNames =
I am trying to use UIModalPresentationFormSheet in my Ipad app but it does not
(EDIT: This question is now outdated for my particular issue, as Google Code supports
I have a weighted choice algorithm that works, but I'd like to improve it
I have a view that is outputting a list of questions(yesno and multiple choice).
EDIT I have finally figured out the problem i have been having on my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.