X-Originating-IP: [200.34.143.5] From: "J. L." To: Subject: Fw: Alocating Memory to a Referenced Pointer! Date: Fri, 12 Jul 2002 13:03:05 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Message-ID: X-OriginalArrivalTime: 12 Jul 2002 18:03:07.0749 (UTC) FILETIME=[606C0950:01C229CE] Reply-To: djgpp AT delorie DOT com ----- Original Message ----- From: "J. L." To: Sent: Friday, July 12, 2002 11:11 AM Subject: Re: Alocating Memory to a Referenced Pointer! > char *F_Allocate_Mem(void){ > char *t; > > t=(char *)malloc (200 *sizeof(char)); > if (t==NULL){ > perror("Memory exhausted"); > exit(1); > } > return p; Oops. Sorry. Obviously, there are nothing named *p* in the function. Instead: return t; > } >