I am currently having trouble passing structures to functions.
Here is a portion of my code where Select_File is the function and
I am trying to pass the struct TXT to the function for editing.
Code:
typedef struct
{
int position
int chars
int newlines
}TXT;
void Select_File(TXT *file_info );
int main(void)
{
TXT *file_info;
Select_File( file_info );
}
void Select_File( TXT *file_info )
{
}
I am sure whatever I am doing wrong is clear to someone else, so if anyone is willing to offer help I would be much appreciative.