Re: problem in reading from file

From: Bit Twister (BitTwister_at_mouse-potato.com)
Date: 09/26/05


Date: Sun, 25 Sep 2005 18:10:37 -0500

On 25 Sep 2005 15:40:26 -0700, hirenshah.05@gmail.com wrote:
> how can i fix memory allocation problem?

Might try
struct {char ch[50], int n; } x, y ;

> and don't how many times user will run

I can not see how that matters because as the program is executed the
x and y structure space is available for data storage.

> and add data.

Do you mean to the output data file or what.

You also might running your program through lint and tell the compiler
to use strict which will point out errors for you.