--------------------------------------------------------------------------- ������ �������, ������������� � ������ del
| 45 | //--------------------------------------------------------------------------- |
| 46 | // ������ �������, ������������� � ������ del |
| 47 | void DeleteCharactersFromString(char * s, char * del) |
| 48 | { |
| 49 | if( !s || !del ) return; |
| 50 | int i, j; |
| 51 | for(i=0,j=0; s[i]; i++) |
| 52 | { |
| 53 | if( strchr(del, s[i]) ) continue; |
| 54 | // ������ s[i] � ������ del �� ������ - ������� ��� |
| 55 | s[j++] = s[i]; |
| 56 | } |
| 57 | s[j] = 0; |
| 58 | } |
| 59 | //--------------------------------------------------------------------------- |
| 60 | // �������� � ������ s ��� �������, ��������� � ������ source �� ������ dest |
| 61 | void ReplaceCharactersFromString(char * s, char * source, char dest) |
nothing calls this directly
no outgoing calls
no test coverage detected