Hi,
please help
I have a struct with a pointer to another struct

*********************
Code:
typedef struct f{
    
    fl *fl;
    f *next;
}f;
typedef struct fl{
    
    int i;


}f;
************************
my problem is when i try to add a new item
i initiate a new fl struct with malloc
*****************************
Code:
*fl new_line=(*fl)malloc(sizeof(fl));
i=1;

f->fl =fl;
*******************************
fl is recognized in the scope but it losses all values when i am out of the function

what am i doing wrong?