[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: programming



* Sebastiaan <S.Breedveld@ITS.TUDelft.NL> [2001.11.04 16:51:09+0100]:
> while (fgets(buff, sizeof(buff)-1, filestream) != NULL)
>         {
> 	/* do something with the 'buff' variable */
> 	}

char *buff = (char*)malloc(128);
sizeof(buff) == 4   // on i32 machines

--> problem!

-- 
martin;              (greetings from the heart of the sun.)
  \____ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck
  
"this week dragged past me so slowly;
 the days fell on their knees..."
                                                        -- david bowie

Attachment: pgpEfjetHqW3P.pgp
Description: PGP signature


Reply to: