1N/A#
pragma ident "%Z%%M% %I% %E% SMI" 1N/A * The contents of this file are subject to the Netscape Public 1N/A * License Version 1.1 (the "License"); you may not use this file 1N/A * except in compliance with the License. You may obtain a copy of 1N/A * Software distributed under the License is distributed on an "AS 1N/A * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or 1N/A * implied. See the License for the specific language governing 1N/A * rights and limitations under the License. 1N/A * The Original Code is Mozilla Communicator client code, released 1N/A * The Initial Developer of the Original Code is Netscape 1N/A * Communications Corporation. Portions created by Netscape are 1N/A * Copyright (C) 1998-1999 Netscape Communications Corporation. All 1N/A * Add s at the end of the array of strings *a. 1N/A * Return 0 for success, -1 for failure. 1N/A (n +
2) *
sizeof(
char *) );
1N/A * Add array of strings s at the end of the array of strings *a. 1N/A * Return 0 for success, -1 for failure. 1N/A (n +
nn +
1) *
sizeof(
char *) );
1N/A for ( i = 0; i <
nn; i++ ) {
1N/A * Duplicate the array of strings a, return NULL upon any memory failure. 1N/A for ( j = 0; j < i; j++ )
1N/A * Tokenize the string str, return NULL upon any memory failure. 1N/A * XXX: on many platforms this function is not thread safe because it 1N/A /* This implementation fails if brkstr contains multibyte characters. 1N/A But it works OK if str is UTF-8 and brkstr is 7-bit ASCII. 1N/A for ( j = 0; j < (i -
1); j++ )