Problems with functions and structures. Help neded!

This is a discussion on Problems with functions and structures. Help neded! within the C Programming forums, part of the General Programming Boards category; sory if this was before but I realy can't find the answer...
Code:
#include <stdio.h>#include <stdlib.h>
#include <string.h>
#include <conio.h>
...

Your function definition and declaration are different, they shouldn't be.

datentry(name,place); <-- where have you defined the variable 'name'?

name and place are defined in main...so i want function to use those strings...or best will be that function will store the name and others in struct "passager" and the passager in main declared vectors...

The code you have shown us only declares "name" in main(), but there is no "place".
Declaring names inside a function like main() makes them local to that function, which means they aren't visible in other functions.

Originally Posted by paradokss

it's somethink like a data base of a air company... and i'm new to the programming and i readed some books but can't realy get it with this functions and pointers

When did you start learning C?

Reading books is not enough. You also have to understand the contents.
I suggest practicing some simple examples using functions and structures before continuing with your program.

For example, you could try to write a little program which stores different kind of values into a structure (ints, doubles, strings, ...) and pass this structure to a function which prints out the contents of each member.
The next step would be to change the function so that you can pass a pointer to the structure.

If you have problems with these tasks I'm afraid you have to go back studying your books or for example the tutorials on this site.