linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* writing logfile
@ 2003-02-25 10:57 Mat Harris
  2003-02-25 11:38 ` Elias Athanasopoulos
  0 siblings, 1 reply; 14+ messages in thread
From: Mat Harris @ 2003-02-25 10:57 UTC (permalink / raw)
  To: linux-c-programming

[-- Attachment #1: Type: text/plain, Size: 598 bytes --]

WARNING: Newbie ALERT!!!

I am trying to write three functions to plugin to my app. They are defined 
in log.h and are used for opening, writing to, and closing a logfile. I have
attached log.h.

My questions are: How do I tell fopen to create if not there or append if
it is? I seem to get an error either way. 

And: Why does the fputs cause a segfault? Is there a better way of doing it?
I know I do not understand types and casting very well so I may have it
totally wrong.

Thanks

-- 
Mat Harris			OpenGPG Public Key ID: C37D57D9
mat.harris@genestate.com	www.genestate.com	

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2003-02-27 10:32 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-25 10:57 writing logfile Mat Harris
2003-02-25 11:38 ` Elias Athanasopoulos
2003-02-25 12:49   ` Mat Harris
2003-02-25 13:09     ` William N. Zanatta
2003-02-25 13:11       ` Mat Harris
2003-02-25 14:10       ` Elias Athanasopoulos
2003-02-25 14:18     ` Elias Athanasopoulos
2003-02-26  1:09     ` Glynn Clements
2003-02-26  9:25       ` Mat Harris
2003-02-26 10:09         ` Jan-Benedict Glaw
2003-02-26 10:18           ` Mat Harris
2003-02-26 19:45             ` Glynn Clements
2003-02-27 10:04               ` Mat Harris
2003-02-27 10:32                 ` SOLVED: " Mat Harris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).