New command -msg_op
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user