The common way is to just call foo();
without casting into (void)
.
He who has never ignored printf()
‘s return value, cast the first stone.
More Related Contents:
- what is the return type of printf [closed]
- Do you use the TR 24731 ‘safe’ functions? [closed]
- How do I return multiple values from a function in C?
- Setting variable to NULL after free
- Function returns value without return statement
- Return address of local variable in C
- Checking return value of a function without return statement
- Opaque C structs: various ways to declare them
- sizeof with a type or variable
- What is the valid range for program return value in Linux/bash? [duplicate]
- Parenthesis surrounding return values in C
- srand function is returning same values
- Should you always use ‘int’ for numbers in C, even if they are non-negative?
- Can a pointer (address) ever be negative?
- Should useless type qualifiers on return types be used, for clarity?
- Why do most C developers use define instead of const? [duplicate]
- in c: func(void) vs. func() [duplicate]
- Why declare a struct that only contains an array in C?
- Triple pointers in C: is it a matter of style?
- Why is it assumed that send may return with less than requested data transmitted on a blocking socket?
- Compiler warning for function defined without prototype in scope?
- Using true and false in C
- Do you prefer “if (var)” or “if (var != 0)”? [closed]
- How does C return a structure? [duplicate]
- With C TCP sockets, can ‘send’ return zero?
- Why is “typedef struct foo foo;” considered harmful?
- Need for prefixing a function with (void)
- C: Reading strings from binary file
- What does !!(x) mean in C (esp. the Linux kernel)?
- Do variables declared in a header file give separate copies of the variables to each .c file that includes the header?