Help problem with inc file
#3

this
Quote:

stock StripNewLine(string[])
line 2987 ------------ > {
new len = strlen(string); // Get the length of the given string

if (string[0] == 0) return ; // If the given string is empty, exit the function
if ((string[len - 1] == '\n') || (string[len - 1] == '\r')) // If the string ends with \n or \r
{
string[len - 1] = 0; // Replace the \n or \r with a 0 character
if (string[0]==0) return ; // If the string became empty, exit the function
if ((string[len - 2] == '\n') || (string[len - 2] == '\r')) // Check again if the string ends with \n or \r
string[len - 2] = 0; // Replace the \n or \r again with a 0 character
}
}

Reply


Messages In This Thread
Help problem with inc file - by Mijata - 02.07.2015, 18:31
Re: Help problem with inc file - by NoahF - 02.07.2015, 18:44
Re: Help problem with inc file - by Mijata - 02.07.2015, 18:53
Re: Help problem with inc file - by amirab - 02.07.2015, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)