How to tell what to do with a man page?
Maybe this is a moron question. I'm not sure. I'm finding that as I try to use various things in the C standard lib + a few others that it is a bit of trial and error to get them to work. This is an example of my biggest problem.
From the manpage for getline Code:
#include <stdio.h> Code:
char * Code:
&ptr vs *ptr |
Pass ptr when you need the value of the pointer. Pass *ptr when you just need the value that it points to. Pass &ptr when you need to modify the pointer in the function.
|
Must have missed it. Pointers still mess with my head. Thank you very much for explaining that.
|
All times are GMT -5. The time now is 09:04 AM. |