B
Bill Cunningham
Ok concering the first parameter of fread.
size_t fread(void *buf...,
The address seems to be passed to fread's first parameter a lot. Does it
have to be done that way? What I see is fread wanting a pointer to
something. And it doesn't have to be a char* because the generic pointer is
declared.
char *name="file";
fread(&name,
Why not
fread(name, or
fread(*name,
To dereference? *name points to the same address as returned by &name. Does
something about the first parameter scream out "Pass the address being
pointed too!" All I see is that void *buf wants a pointer.
Bill
size_t fread(void *buf...,
The address seems to be passed to fread's first parameter a lot. Does it
have to be done that way? What I see is fread wanting a pointer to
something. And it doesn't have to be a char* because the generic pointer is
declared.
char *name="file";
fread(&name,
Why not
fread(name, or
fread(*name,
To dereference? *name points to the same address as returned by &name. Does
something about the first parameter scream out "Pass the address being
pointed too!" All I see is that void *buf wants a pointer.
Bill