delorie.com/archives/browse.cgi | search |
X-Originating-IP: | [200.34.143.5] |
From: | "J. L." <jlsgarrido AT hotmail DOT com> |
To: | <djgpp AT delorie DOT com> |
Subject: | Fw: Alocating Memory to a Referenced Pointer! |
Date: | Fri, 12 Jul 2002 13:03:05 -0500 |
MIME-Version: | 1.0 |
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: | <OE75gbKNBQa9Pq8WuIY0000818b@hotmail.com> |
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." <jlsgarrido AT hotmail DOT com> To: <djgpp AT delorie DOT com> 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; > } >
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |