28.02.2015, 23:46
http://pastebin.com/SyhYhuYk
Код:
stock _StripNewLine(string[]) {//dini new len = strlen(string); if (string[0]==0) return ; if ((string[len - 1] == '\n') || (string[len - 1] == '\r')) { string[len - 1] = 0; if (string[0]==0) return ; if ((string[len - 2] == '\n') || (string[len - 2] == '\r')) string[len - 2] = 0; } }