src/tools/bsnapshot.c
int count_col(char *l, char sep) {
      int nb=0;
      for (char *p = l ; *p ; p++) {
         if (*p == sep) {
            nb++;
         }
      }
      return nb;
   }
/* count the number of column in the output */
count the number of column in the output
count the number of column in the output
int count_col(char *l, char sep) {
      int nb=0;
      for (char *p = l ; *p ; p++) {
         if (*p == sep) {
            nb++;
         }
      }
      return nb;
   }
int count_col ( char * l , char sep ) { int nb = 0 ; for ( char * p = l ; * p ; p ++ ) { if ( * p == sep ) { nb ++ ; } } return nb ; }
count the number of column in the output
count the number of column in the output