From owner-freebsd-questions Sun Jun 28 02:45:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA25114 for freebsd-questions-outgoing; Sun, 28 Jun 1998 02:45:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from www.transfar.com ([202.103.100.244]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA25108 for ; Sun, 28 Jun 1998 02:45:55 -0700 (PDT) (envelope-from phj@www.transfar.com) Received: from www.transfar.com ([202.103.100.245]) by www.transfar.com (Netscape Mail Server v2.02) with ESMTP id AAA1001 for ; Sun, 28 Jun 1998 18:40:30 +0900 Message-ID: <3596E355.942F1AF9@www.transfar.com> Date: Sun, 28 Jun 1998 17:44:05 -0700 From: phj Organization: TransFar X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.6-RELEASE i386) MIME-Version: 1.0 To: questions@FreeBSD.ORG Subject: How to malloc more memory than 20M. Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Do you know how to malloc more space for my program. char *p; p=(char *)malloc(20000000); it always fail at the above line ,how can I malloc more memory than 20M. Please Help me. thanks everybody reply to me. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message