Add comments, fix binding of topd
[remotetop.git] / sendtop.c
index 4a48662..ce24d62 100644 (file)
--- a/sendtop.c
+++ b/sendtop.c
@@ -90,6 +90,10 @@ getmeminfo(TCMsgTop *m) {
 
 #define MEMBUFSIZE 256
 
+/*
+ * if str mathes by pattern returns poineter to begin of value
+ * and NULL in opposite case
+ */
 static char*
 cmpPattern( char *str, char *pattern ) {
        while( *str != '\0' && *str == *pattern ) {