/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef nsCRT_h___ #define nsCRT_h___
voidmain(void){ printf("%s\n\nTokens:\n",string); // Establish string and get the first token: char*newStr; token=nsCRT::strtok(string,seps,&newStr); while(token!=nullptr){ // While there are tokens in "string" printf("%s\n",token); // Get next token: token=nsCRT::strtok(newStr,seps,&newStr); } } *WARNING-STRTOKWHACKSstrTHEFIRSTTIMEITISCALLED* *MAKEACOPYOFstrIFYOUNEEDTOUSEITAFTERstrtok()*
*/ staticchar* strtok(char* aStr, constchar* aDelims, char** aNewStr);
/// Like strcmp except for ucs2 strings static int32_t strcmp(const char16_t* aStr1, const char16_t* aStr2);
// String to longlong static int64_t atoll(constchar* aStr);
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.