Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Better yet, try to find the corresponding ints (or maybe more realistically shorts or chars) from usual #include headers, and use the #define or const mnemonics for all numbers.

Bonus points for finding them all in the same header file, or with like names, so as to give appearance of them actually meaning something in the context of the prank.



It doesn't translate the octal and hexadecimal constants into decimal, but you could get a first cut at that from

  cd /usr/include; egrep -r \#define.*[0-9]+$ . | sed 's/#define[\t ]//' | awk  '{print $NF,  $1}'  | sort -n




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: