The C language does not have means for default arguments, therefore you get an error on such a definition.
-- Ori Idan On Mon, Sep 22, 2008 at 12:10 PM, Kreyl <[EMAIL PROTECTED]> wrote: > Hi! > > I would like to use function with default value of an argument, so I > wrote next: > > Definition: > > void LCDWrite (uint8_t Destination, uint8_t AData, uint8_t DontWait=0); > > Implementation: > > void LCDWrite (uint8_t Destination, uint8_t AData, uint8_t DontWait) { > // do smth. > } > > > But I receive error message about definition: > > error: expected ';', ',' or ')' before '=' token > > > What am I doing wrong? Where can I read about it? > > Thanx! > > > Best regards, > Kreyl > > mailto: [EMAIL PROTECTED] > ICQ: 171094105 > > > > _______________________________________________ > AVR-chat mailing list > AVR-chat@nongnu.org > http://lists.nongnu.org/mailman/listinfo/avr-chat > -- ספרים וסיפורים שכתבתי: http://www.thestories.org
_______________________________________________ AVR-chat mailing list AVR-chat@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-chat