News for hackers. Stuff that matters.
Re:Everything you need to know about pointers in C (2010) by slmjkdbtl on Tuesday September 15, 2020 @07:36AM (#24480048)
The time [0] I found out about ptr_b in

  int* ptr_a, ptr_b;
isn't actually initialized as a pointer I changed all my C code to marking * before the variable name, fun times. It's helpful to think int as the base type and * the indicator of functionality like [] and ().

Also just found out the author was the developer of Adium [1], which is one of my favorite softwares (best logo) on macOS.

[0] http://c-faq.com/decl/charstarws.html

[1] https://adium.im/

Re:Everything you need to know about pointers in C (2010) by sai_c on Tuesday September 15, 2020 @08:02AM (#24480216)
Besides writing

  "int *p"
 
instead of

  "int* p"
 
I also always use one line per variable declaration, which should avoid confusion when the first style is used. But that's my personal preference.

Edit: corrected code quotation.

Re:Everything you need to know about pointers in C (2010) by ogogmad on Tuesday September 15, 2020 @08:04AM (#24480237)
When quoting code, leave a line and indent by two spaces.
Re:Everything you need to know about pointers in C (2010) by sai_c on Tuesday September 15, 2020 @09:03AM (#24480724)
Sorry, will do so in the future. Thx.
Re:Everything you need to know about pointers in C (2010) by darkhstarh on Tuesday September 15, 2020 @07:25PM (#24487878)
"int* p" really grinds my gears
Re:Everything you need to know about pointers in C (2010) by AdmiralGinge on Tuesday September 15, 2020 @09:54AM (#24481206)
I used to use that years ago! I had to stop when everyone moved over to Facebook Chat (what became Messenger) and eventually made a breaking change Adium couldn't support.