Somehow this won't work, and I cannot figure out why.. !
Code:Environment* f; f = fillEnvironmentF(e);My problem is that after the function-call my variable f doesn't point at anything, it's empty. I know that nE contains all I want.Code:Environment* fillEnvironmentF(Environment* environment){ Environment fEnv; Environment* nE = &fEnv; [... here I fill up the struct fEnv, and that works] return nE; }