How to compare strings against static char arrays?

Andrej Mitrovic none at none.none
Tue Apr 26 17:55:15 PDT 2011


E.g.:

void main()
{
    char[10] blue = "blue      ";
    assert(blue == "blue");
}

Obviously these two are different, but what function can I use to compare strings in situations where whitespace is the delimiter?


More information about the Digitalmars-d-learn mailing list