RE: Yet another beginners question ...

1999-03-03 Thread James
On Tue, 2 Mar 1999 [EMAIL PROTECTED] wrote: # My friend says that I should buy the KR but i think I read somewhere that # it's 'old C', not ANSII C. Is this correct ? no, the KR ANSI C Book is for ANSI (One I) C... I think you're confusing it with KR C which is old C. this is the book to buy:

Re: Yet another beginners question ...

1999-03-03 Thread James
On Tue, 2 Mar 1999 [EMAIL PROTECTED] wrote: # #define LOGFILE /APPHOME/applogfile /* APPHOME is the actual home # directory for the application */ # remove("LOGFILE");/* First remove the old logfile */ # LogFile = fopen("LOGFILE", "w"); you know how using #define's

Yet another beginners question ...

1999-03-02 Thread j . demessemaeker
I'm writing a program and i have the following question. I'm defining a homedirectory and logfile for my application like this #define LOGFILE /APPHOME/applogfile /* APPHOME is the actual home directory for the application */ But when i try to delete the old logfile and open the logfile

Re: Yet another beginners question ...

1999-03-02 Thread Joseph Keen
Try doing something like this const char Logfile = '/usr/people/bob/APHOME/applogfile' FILE *fp remove("LogFile"); fp = fopen("LogFile", "w"); . . . What it sounds like is that your #define isn't getting the entire path to the file so it's just doing what it can with what it knows, which is

RE: Yet another beginners question ...

1999-03-02 Thread Joseph Keen
richt- Van:Johan De Messemaeker Verzonden: dinsdag 2 maart 1999 11:13 Aan:Linux-C-Programming mailing list (E-mail) Onderwerp: Yet another beginners question ... I'm writing a program and i have the following question. I'm defining a homedirectory and l

Re: Yet another beginners question ...

1999-03-02 Thread Colin Campbell
On Tue, Mar 02, 1999 at 11:45:58AM +0100, [EMAIL PROTECTED] wrote: My friend says that I should buy the KR but i think I read somewhere that it's 'old C', not ANSII C. Is this correct ? No the second edition (1988) is ANSI C. (I'm sure I recall seeing a Dutch translation, as well). --