- /* RAW METHOD (REPLACED BY SSCANF):
- cur_st = i; // Set current start at beginning of current line
- while (big_str[i] != '/') {
- ++i; // Go to next '/'
- }
- tmp_cmsf[cmsf_ind].channel =
- strndup(big_str + cur_st, i - cur_st);
-
- ++i; // Go after '/'
- cur_st = i; // Set current start at beginning of marker name
- while (big_str[i] != ' ') {
- ++i; // Go to next ' '
- }
- tmp_cmsf[cmsf_ind].marker =
- strndup(big_str + cur_st, i - cur_st);
-
- ++i; // Go after ' '
- tmp_cmsf[cmsf_ind].state = (big_str[i] == USTCMD_MS_CHR_ON ?
- USTCMD_MS_ON : USTCMD_MS_OFF); // Marker state
-
- i += 2; // Go to format string (after state and another ' ')
- cur_st = i; // Set current start at beginning of format string
- while (big_str[i] != '\n') {
- ++i; // Go to next '\n'
- }
- tmp_cmsf[cmsf_ind].fs =
- strndup(big_str + cur_st, i - cur_st);
- */
-