Андрей
Кто-нибудь сможет мне объяснить как удалить подстроку в Си???
Прототип: void removeMain (char str[ ] );
Прототип: void removeMain (char str[ ] );
#include
#include
void strrem(char* pSS, const char* pDS)
{char* pTS=strstr(pSS,pDS); strcpy(pTS, pTS+strlen(pDS));};
int main(){char s[]="abcde fgh ijklm"; strrem(s,"gh" ); printf( "%s\n",s); return 0;};