Code: Select all
printf.c:169: error: lvalue required as left operand of assignment
Code: Select all
num = va_arg(args, unsigned long);
This is standard of every other printf implementation I've seen, so why is it bugging out on cc?
Code: Select all
printf.c:169: error: lvalue required as left operand of assignment
Code: Select all
num = va_arg(args, unsigned long);
The problem being reported is that "unsigned long" expects a variable to be declared such as "unsigned long x"tktech wrote:I've just finished (almost implementing printf) and the only error is:the line in question is:Code: Select all
printf.c:169: error: lvalue required as left operand of assignment
Code: Select all
num = va_arg(args, unsigned long);