diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-06 03:20:25 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-06 03:20:25 +0000 |
commit | b84421d6712d27e256a70f13019bba4c01b99703 (patch) | |
tree | 1196815163b6f3c7612238b7503e290ecf285efe | |
parent | f9c3f95cb7bdb84731e482788d4cb35cc0cfefc5 (diff) |
Added the beginnings of some function documentation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3486 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/helperfuncs.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 1581e3b26..df6b33af6 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -67,7 +67,12 @@ extern std::vector<userrec*> local_users; static char TIMESTR[26]; static time_t LAST = 0; -void log(int level,char *text, ...) +/** Writes information about events to a file. + * log() + * Write a line of text `text' to the logfile (and stdout, if in nofork) if the level `level' + * is greater than the configured loglevel. + */ +void log(int level, char *text, ...) { va_list argsPtr; @@ -100,6 +105,12 @@ void log(int level,char *text, ...) } } +/** + * readfile() + * Read the contents of a file located by `fname' into a file_cache pointed at by `F'. + * + * XXX - we may want to consider returning a file_cache or pointer to one, less confusing. + */ void readfile(file_cache &F, const char* fname) { FILE* file; |