What does "define" in C code without a # in front of it mean? For example, what's the difference between these two lines:
define retadd "\x9f\x45\x3a\x77"
#define port 110
I found this in code found here: https://www.exploit-db.com/raw/643/
What does "define" in C code without a # in front of it mean? For example, what's the difference between these two lines:
define retadd "\x9f\x45\x3a\x77"
#define port 110
I found this in code found here: https://www.exploit-db.com/raw/643/
It’s not standard C: that’s for sure.
It might be something very compiler specific or a bug in the source code.
define
without a leading #
is just another identifier, and in that context would be a syntax error (it's not a declaration specifier or type name, which is what the compiler expects at that point). That code must be a typo.