jli_util.c revision 5270
4901N/A * Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. 4901N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4901N/A * This code is free software; you can redistribute it and/or modify it 4901N/A * under the terms of the GNU General Public License version 2 only, as 4901N/A * published by the Free Software Foundation. Oracle designates this 4901N/A * particular file as subject to the "Classpath" exception as provided 4901N/A * by Oracle in the LICENSE file that accompanied this code. 4901N/A * This code is distributed in the hope that it will be useful, but WITHOUT 4901N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4901N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4901N/A * version 2 for more details (a copy is included in the LICENSE file that 4901N/A * You should have received a copy of the GNU General Public License version 4901N/A * 2 along with this work; if not, write to the Free Software Foundation, 4901N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4901N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4901N/A * Returns a pointer to a block of at least 'size' bytes of memory. 4901N/A * Prints error message and exits if the memory could not be allocated. 4901N/A * Equivalent to realloc(size). 4901N/A * Prints error message and exits if the memory could not be reallocated. 4901N/A * Wrapper over strdup(3C) which prints an error message and exits if memory 4901N/A * Very equivalent to free(ptr). 4901N/A * Here to maintain pairing with the above routines.