New command -msg_op

This commit is contained in:
2012-12-08 17:55:58 +00:00
parent db6e65dde8
commit c86aafaa0f
14 changed files with 593 additions and 138 deletions

View File

@ -46,6 +46,18 @@ char *Sfile_fgets_n(char *line, int maxl, FILE *fp, int flag)
}
int Sfile_count_char(char *text, char to_count)
{
int count= 0;
char *cpt;
for(cpt= text; *cpt != 0; cpt++)
if(*cpt == to_count)
count++;
return count;
}
int Sfile_count_components(char *path, int flag)
/*
bit0= do not ignore trailing slash