mirror of
https://gitlab.com/fbb-git/cppannotations
synced 2024-11-16 07:48:44 +01:00
10 lines
155 B
Text
10 lines
155 B
Text
|
string cutEoln(string text)
|
||
|
{
|
||
|
int len;
|
||
|
|
||
|
len = strlen(text) - 1;
|
||
|
if (text[len] == "\n")
|
||
|
text = substr(text, 0, len);
|
||
|
return text;
|
||
|
}
|