stream output??

Hi all,

I've a structure let's say
typdef struct a { int a; int b; char* string} b;

I need to make the function smth like readdir(), returning everytime it's called pointer to the next structure. Let's say functions would read the next file in the directory and all the permitions put it in a structure and returns it. When it's called next time it moves to the next files, etc. (It's just an example, so you would understand my task easier). How do i make that kinda STREAM output??

Thank you all,
Regards
:smiley:

hi!

u have made this confusing by using the word 'STREAM' wat xactly do u mean? from wat i've understood of ur prob, u can use 'static' 2 solve it.

Rgds
Shaik

It's good that you answered, but please use full words ("your" instead of "ur", "you" instead of "u", and so on...)

It makes it much easier for me (who speaks english fluently), and much much easier for folks who aren't as used to english as we are.