Changeset 75 for common/trunk/src/util.h

Show
Ignore:
Timestamp:
03/19/99 09:08:47 (15 years ago)
Author:
ucacoxh
Message:

Added overlapping_words which returns the number of overlapping words
in two strings.

Slightly annoyed at having to write this but M$ mixerGetID and
mixerOpen fn's do not work for wave identifiers so there is no way to
tie the mixer to wave in / wave out devices bar matching manufacturer
id and finding the most overlap in words between the mixer name and
wave name. Grrr! Thwack!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/src/util.h

    r3 r75  
    5050void     block_check(char *p); 
    5151 
    52 void purge_chars(char *src, char *to_go); /* Removes occurances of chars in to_go from src */ 
     52/* purge_chars: removes occurances of chars in to_go from src */ 
     53void purge_chars(char *src, char *to_go);  
     54 
     55/* overlapping_words: returns how many words match in two strings */ 
     56int overlapping_words(const char *s1, const char *s2, int max_words); 
    5357 
    5458#endif