Date: Wed, 7 Nov 2001 16:43:02 +1100 From: "Matthew Blacklow" <matthew.blacklow@ticca.com> To: <questions@freebsd.org> Subject: Changing the value of a constant Message-ID: <NFBBICMIIEMNIMGOBPCMMEAPCHAA.matthew.blacklow@ticca.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NFBBICMIIEMNIMGOBPCMMEAPCHAA.matthew.blacklow>