]> git.saurik.com Git - apple/boot.git/blob - gen/libsaio/localPrintf.c
boot-111.tar.gz
[apple/boot.git] / gen / libsaio / localPrintf.c
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * Copyright 1993 NeXT Computer, Inc.
27 * All rights reserved.
28 */
29
30 #ifdef SAIO_INTERNAL_USER
31 #undef SAIO_INTERNAL_USER
32 #endif
33 #import "libsa.h"
34 #import "saio_types.h"
35 #import "saio.h"
36 #import "libsaio.h"
37
38
39 int localPrintf(const char *format, ...)
40 {
41 va_list ap;
42 char *val;
43
44 val = 0;
45 va_start(ap, format);
46 localVPrintf(format, ap);
47 va_end(ap);
48 return 0;
49 }
50
51 int error(const char *format, ...)
52 {
53 va_list ap;
54 va_start(ap, format);
55 errorV(format, ap);
56 va_end(ap);
57 return(0);
58 }