Debugging standard C library routines

K

Keith Thompson

Frederick Gotham said:
Old Wolf posted:

You can't mix statements and declarations in C (within a block).

You can in C99.
The argument to "assert" must be of the type, int.

In C99, it merely has to be a scalar expression.

[snip]
The cast-to-void is intended to suppress a compiler warning regarding non-
usage of a variable.

It may or may not do so, depending on the compiler.
 
B

Bob Martin

in 701336 20061015 152559 Frederick Gotham said:
int i; To hold the amount of chickens


It's "number of chickens".

(You'd need a float to hold the amount of chicken ;-) )
 
K

Keith Thompson

Flash Gordon said:
No, you need float for ducks.

No, the ducks can float by themselves, so you need a float for the
chickens.

You get down off a duck.

But we should really be talking about C gulls.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top