Done with doxygenizing
[citadel.git] / webcit / notes.c
index 05fcb57b01566123b21600d1637a997df8f27acd..89f2c84ca31a342c04f0d09211e8d840b6a0c4d1 100644 (file)
@@ -1,28 +1,18 @@
 /*
  * $Id$
- *
- * Functions which handle "sticky notes"
+ */
+/**
+ * \defgroup StickyNotes Functions which handle "sticky notes"
  *
  */
-
-#include <ctype.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <fcntl.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/socket.h>
-#include <limits.h>
-#include <string.h>
-#include <pwd.h>
-#include <errno.h>
-#include <stdarg.h>
-#include <time.h>
+/*@{*/
 #include "webcit.h"
 #include "webserver.h"
 
+/**
+ * \brief display sticky notes
+ * \param msgnum the citadel mesage number
+ */
 void display_note(long msgnum) {
        char buf[SIZ];
        char notetext[SIZ];
@@ -30,7 +20,7 @@ void display_note(long msgnum) {
        int in_text = 0;
        int i;
 
-       wprintf("<IMG ALIGN=MIDDLE SRC=\"/static/note.gif\">\n");
+       wprintf("<IMG ALIGN=MIDDLE src=\"static/storenotes_48x.gif\">\n");
 
        serv_printf("MSG0 %ld", msgnum);
        serv_getln(buf, sizeof buf);
@@ -42,7 +32,7 @@ void display_note(long msgnum) {
        strcpy(notetext, "");
        while (serv_getln(buf, sizeof buf), strcmp(buf, "000")) {
 
-               /* Fill the buffer to at least 256 characters */
+               /** Fill the buffer to at least 256 characters */
                if ( (in_text) && (strlen(notetext) < 256) ) {
                        strcat(notetext, buf);
                }
@@ -52,13 +42,16 @@ void display_note(long msgnum) {
                }
        }
 
-       /* Now sanitize the buffer, and shorten it to just a small snippet */
+       /** Now sanitize the buffer, and shorten it to just a small snippet */
        for (i=0; i<strlen(notetext); ++i) {
                if (isspace(notetext[i])) notetext[i] = ' ';
        }
        strcpy(&notetext[72], "...");
 
-       /* Make it HTML-happy and print it. */
+       /** Make it HTML-happy and print it. */
        stresc(display_notetext, notetext, 1, 1);
        wprintf("%s<br />\n", display_notetext);
 }
+
+
+/*@}*/