diff src/util.h @ 463:95697d7c97a1 noffle

[svn] * src/outgoing.c,src/util.h,src/util.c: Create Utl_createDir() and Utl_writeFile() and rework outgoing.c to use them.
author bears
date Wed, 23 Jul 2003 10:31:01 +0100
parents 3477050e8d10
children
line wrap: on
line diff
--- a/src/util.h	Wed Jul 23 10:26:49 2003 +0100
+++ b/src/util.h	Wed Jul 23 10:31:01 2003 +0100
@@ -3,7 +3,7 @@
 
   Miscellaneous helper functions.
 
-  $Id: util.h 403 2002-11-10 11:32:17Z bears $
+  $Id: util.h 608 2003-07-23 09:31:01Z bears $
 */
 
 #ifndef UTL_H
@@ -116,4 +116,13 @@
 Bool
 Utl_getFQDN( Str result );
 
+/* Ensure a directory exists and create it if not. */
+Bool
+Utl_createDir( const char *dir );
+
+/* Write text to file in given dir, creating dir if necessary. */
+Bool
+Utl_writeFile( const char *dirPrefix, const char *dir,
+	       const char *file, const char *text);
+
 #endif