aaronvegh
Technical User
- Apr 12, 2001
- 3
Hi there,
I've got some C experience, but not a ton. I'm working on integrating a library of C code into a C project that I'm writing, but I'm stumbling on supplying a required argument because I don't have the right data type. The function signature is
static void blockPrint (FILE *fp, const BYTE *block, int blockBits, const char *tag)
It's the first argument that I'm not getting. In the example code for this function, a regular string is being sent to this function (i.e. "file.txt"), but in my code I have the file path in question supplied as a const char *. But what the heck is a var of type FILE? I can't find this anywhere in Google or the C docs.
I'm guessing this is a total n00b question, but a little help would... uh, help.
Thanks!
Aaron.
I've got some C experience, but not a ton. I'm working on integrating a library of C code into a C project that I'm writing, but I'm stumbling on supplying a required argument because I don't have the right data type. The function signature is
static void blockPrint (FILE *fp, const BYTE *block, int blockBits, const char *tag)
It's the first argument that I'm not getting. In the example code for this function, a regular string is being sent to this function (i.e. "file.txt"), but in my code I have the file path in question supplied as a const char *. But what the heck is a var of type FILE? I can't find this anywhere in Google or the C docs.
I'm guessing this is a total n00b question, but a little help would... uh, help.
Thanks!
Aaron.