B
Bill Cunningham
I made a minor adjustment to your flip function from a previous post. I
tried to compile into an .o file and got these errors. What have I done now?
Thanks
void flip(unsigned char *c, size_t len)
{
while(len--)
{
*b = ~*b;
++b;
}
}
v.c:1: parse error before "size_t"
v.c: In function `flip':
v.c:3: `len' undeclared (first use in this function)
v.c:3: (Each undeclared identifier is reported only once
v.c:3: for each function it appears in.)
v.c:5: `b' undeclared (first use in this function)
Bill
tried to compile into an .o file and got these errors. What have I done now?
Thanks
void flip(unsigned char *c, size_t len)
{
while(len--)
{
*b = ~*b;
++b;
}
}
v.c:1: parse error before "size_t"
v.c: In function `flip':
v.c:3: `len' undeclared (first use in this function)
v.c:3: (Each undeclared identifier is reported only once
v.c:3: for each function it appears in.)
v.c:5: `b' undeclared (first use in this function)
Bill