Thread: help me

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    help me

    Hi,

    I`m preparing a program for device communication as attached.
    I wonder why this kind of error comes out:
    from

    line 92: too few arguments to function 'int ArcInit(unsigned char)'
    and
    line 340: at this point in file.

    anybody have answer on this?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    How To Ask Questions The Smart Way

    > ine 92: too few arguments to function 'int ArcInit(unsigned char)'
    Isn't it obvious?
    The error message says "too few", as in "not enough".

    You declare it as taking 1 parameter

    > return (ArcInit());
    Zero is less than 1

    Pass a parameter - it's that simple.
    return (ArcInit(123));
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed