views:

123

answers:

1

Hi,

I saw a lot of times code where return status of function was set to *rc * variable (e.g. int rc = foo();). I though it some sort of convention and blindly used it all over my code.

Recently was asked by colleague what *rc * stands for and discovered that I indeed don't know the answer.

Thanks

+6  A: 

It probably refers to

Return Code
Floyd Pink
Yes I use `rc` only for the variable/value which I end up returning using a `return rc;` statement.
ChrisW
A more general name is 'rv', for return value.
Andy Thomas-Cramer
Personally, I've always used 'ret' for RETurn.
slebetman