1*2870Sdp /* 2*2870Sdp * CDDL HEADER START 3*2870Sdp * 4*2870Sdp * The contents of this file are subject to the terms of the 5*2870Sdp * Common Development and Distribution License (the "License"). 6*2870Sdp * You may not use this file except in compliance with the License. 7*2870Sdp * 8*2870Sdp * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*2870Sdp * or http://www.opensolaris.org/os/licensing. 10*2870Sdp * See the License for the specific language governing permissions 11*2870Sdp * and limitations under the License. 12*2870Sdp * 13*2870Sdp * When distributing Covered Code, include this CDDL HEADER in each 14*2870Sdp * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*2870Sdp * If applicable, add the following below this CDDL HEADER, with the 16*2870Sdp * fields enclosed by brackets "[]" replaced with your own identifying 17*2870Sdp * information: Portions Copyright [yyyy] [name of copyright owner] 18*2870Sdp * 19*2870Sdp * CDDL HEADER END 20*2870Sdp */ 21*2870Sdp 22*2870Sdp /* 23*2870Sdp * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*2870Sdp * Use is subject to license terms. 25*2870Sdp */ 26*2870Sdp 27*2870Sdp #pragma ident "%Z%%M% %I% %E% SMI" 28*2870Sdp 29*2870Sdp /* 30*2870Sdp * Test that a strtok(NULL, ...) without first calling strtok(string, ...) 31*2870Sdp * produces an error 32*2870Sdp */ 33*2870Sdp 34*2870Sdp BEGIN 35*2870Sdp { 36*2870Sdp trace(strtok(NULL, "!")); 37*2870Sdp exit(1); 38*2870Sdp } 39*2870Sdp 40*2870Sdp ERROR 41*2870Sdp { 42*2870Sdp exit(0); 43*2870Sdp } 44