From owner-freebsd-questions Tue Nov 6 21:43:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.ideal.net.au (ion.ideal.net.au [203.20.241.5]) by hub.freebsd.org (Postfix) with ESMTP id 510FC37B405 for ; Tue, 6 Nov 2001 21:43:08 -0800 (PST) Received: from magnesium (vanadium.staff.ideal.net.au [202.3.35.23]) by mail.ideal.net.au (8.9.3/8.9.3) with SMTP id QAA12869 for ; Wed, 7 Nov 2001 16:43:00 +1100 (EST) (envelope-from matthew.blacklow@ticca.com) Reply-To: From: "Matthew Blacklow" To: Subject: Changing the value of a constant Date: Wed, 7 Nov 2001 16:43:02 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am writing a C program under FreeBSD and am required to open a file for reading. I have no trouble opening files when the address is hard coded. However the fopen function requires that the path be a const char. My problem is that the everytime the program runs it need to open a different file and that is determined sometime during the programs execution. I need to know how to modify the value of a constant under C. All help appreciated, Matthew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message