Older Newer
Tue, 10 Dec 2019 03:25:14 . . . . SyneRyder [First function definition]


Changes by last author:

Added:
= stripEllipsis =

== Syntax ==

char* stripEllipsis(char* s)

== Arguments ==

:s

::The text that will have an ellipsis stripped.

== Description ==

Returns string s with an ellipsis ("...") removed.

== Example ==

<code>

%fml

ctl[2]: STATICTEXT, Text=""

ctl[4]: STATICTEXT, Text=""

OnFilterStart: {

// Ellipsis is stripped

strcpy(str0, "Waiting...");

strcpy(str1, stripEllipsis(str0));

setCtlText(2, str1);

// Only last ellipsis is stripped

strcpy(str3, "Still waiting...........");

strcpy(str4, stripEllipsis(str3));

setCtlText(4, str4);

return true;

}

</code>

== See Also ==

appendEllipsis, formatString