165 reputation
5
bio website
location
age
visits member for 4 years, 8 months
seen Apr 16 at 13:07

Apr
7
accepted Idiomatic C API with regards to pointers
Apr
7
comment Idiomatic C API with regards to pointers
Ah, OK, I understand i guess … its better if my functions take a pointer, then the client code is free to either allocate on the heap or stack. Does that make sense?
Apr
7
comment Idiomatic C API with regards to pointers
To expand a bit more, because to me it looks like getline could use a char * just as well?
Apr
7
comment Idiomatic C API with regards to pointers
Nothing in particular, I'm trying to understand how to structure an API. Why does it look to you like Person should be dynamically allocated? Those are the questions I am interested in.
Apr
7
comment Idiomatic C API with regards to pointers
OK @KilianFoth, that makes sense. But when do you use one over the other?
Apr
7
asked Idiomatic C API with regards to pointers
Feb
22
awarded  Critic
Sep
13
awarded  Teacher
Sep
13
answered What can you do to decrease the number of deployment bugs of a live website?
Aug
31
comment A colourblind member of our team
We even had a designer on our team who was red color blind. Worked out quite well to be honest, way better then I expected ;)
Dec
27
awarded  Scholar
Oct
29
awarded  Supporter
Oct
3
awarded  Student