Mercurial > noffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
462:de7f674d1224 | 463:95697d7c97a1 |
---|---|
1 /* | 1 /* |
2 util.h | 2 util.h |
3 | 3 |
4 Miscellaneous helper functions. | 4 Miscellaneous helper functions. |
5 | 5 |
6 $Id: util.h 403 2002-11-10 11:32:17Z bears $ | 6 $Id: util.h 608 2003-07-23 09:31:01Z bears $ |
7 */ | 7 */ |
8 | 8 |
9 #ifndef UTL_H | 9 #ifndef UTL_H |
10 #define UTL_H | 10 #define UTL_H |
11 | 11 |
114 | 114 |
115 /* Obtain this system FQDN. */ | 115 /* Obtain this system FQDN. */ |
116 Bool | 116 Bool |
117 Utl_getFQDN( Str result ); | 117 Utl_getFQDN( Str result ); |
118 | 118 |
119 /* Ensure a directory exists and create it if not. */ | |
120 Bool | |
121 Utl_createDir( const char *dir ); | |
122 | |
123 /* Write text to file in given dir, creating dir if necessary. */ | |
124 Bool | |
125 Utl_writeFile( const char *dirPrefix, const char *dir, | |
126 const char *file, const char *text); | |
127 | |
119 #endif | 128 #endif |