/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include"plstr.h" #include <string.h>
PR_IMPLEMENT(PRIntn)
PL_strcmp(constchar* a, constchar* b) { if ((constchar*)0 == a) { return ((constchar*)0 == b) ? 0 : -1;
} if ((constchar*)0 == b) { return 1;
}
return (PRIntn)strcmp(a, b);
}
PR_IMPLEMENT(PRIntn)
PL_strncmp(constchar* a, constchar* b, PRUint32 max) { if ((constchar*)0 == a) { return ((constchar*)0 == b) ? 0 : -1;
} if ((constchar*)0 == b) { return 1;
}
return (PRIntn)strncmp(a, b, (size_t)max);
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.