2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. 2N/A/* externs from libc */ 2N/A * Unsynchronized, but it affects only 2N/A * efficiency, not correctness 2N/A * Return values: 0 = success, 1 = parse error, 2 = erange ... 2N/A * The structure pointer passed in is a structure in the caller's space 2N/A * wherein the field pointers would be set to areas in the buffer if 2N/A * need be. instring and buffer should be separate areas. 2N/A /* Terminate the buffer */ 2N/A /* quick exit do not entry fill if not needed */