Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kpreid
on Oct 15, 2011
|
parent
|
context
|
favorite
| on:
What is your favourite C programming trick?
Indeed this is good style. The following, however, is not good style for allocating an array:
long_struct_name *fooArray = malloc(count * sizeof * fooArray);
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: