errorpath.d revision 2633:71bab08d24b2
11573Srgrimes/*
21573Srgrimes * CDDL HEADER START
31573Srgrimes *
41573Srgrimes * The contents of this file are subject to the terms of the
51573Srgrimes * Common Development and Distribution License (the "License").
61573Srgrimes * You may not use this file except in compliance with the License.
71573Srgrimes *
81573Srgrimes * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
91573Srgrimes * or http://www.opensolaris.org/os/licensing.
101573Srgrimes * See the License for the specific language governing permissions
111573Srgrimes * and limitations under the License.
121573Srgrimes *
131573Srgrimes * When distributing Covered Code, include this CDDL HEADER in each
141573Srgrimes * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
151573Srgrimes * If applicable, add the following below this CDDL HEADER, with the
161573Srgrimes * fields enclosed by brackets "[]" replaced with your own identifying
171573Srgrimes * information: Portions Copyright [yyyy] [name of copyright owner]
181573Srgrimes *
191573Srgrimes * CDDL HEADER END
201573Srgrimes */
211573Srgrimes
221573Srgrimes/*
231573Srgrimes * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
241573Srgrimes * Use is subject to license terms.
251573Srgrimes */
261573Srgrimes
271573Srgrimes#pragma	ident	"%Z%%M%	%I%	%E% SMI"
281573Srgrimes
291573Srgrimes/*
301573Srgrimes * ASSERTION:
311573Srgrimes *	Verify doc example 17-1
321573Srgrimes *
3390045Sobrien * SECTION:
3490045Sobrien *	DocExamples/errorpath
351573Srgrimes */
361573Srgrimes
371573Srgrimes
3819031SjoergBEGIN
391573Srgrimes{
401573Srgrimes	*(char *)NULL;
41154838Scognet}
42154838Scognet
431573SrgrimesERROR
441573Srgrimes{
451573Srgrimes	printf("Hit an error!");
46154838Scognet}
47154838Scognet
48154838Scognet