X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=remotetop.git;a=blobdiff_plain;f=sendtop.c;fp=sendtop.c;h=ce24d621b574b8ee5874d4178fd8f84bfbbba28b;hp=4a48662dce99d492ca5c43f1855df5bf895caf75;hb=a213f1f641583f5cc09b0acf90dad9df305a88ca;hpb=0440f7f90885227829b0fdfa8f52b4f843423484 diff --git a/sendtop.c b/sendtop.c index 4a48662..ce24d62 100644 --- 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 ) {