Home | History | Annotate | Download | only in hdr
      1 /*************************************************************************/
      2 /* module:          Library for utility Functions                        */
      3 /*                                                                       */
      4 /* file:            libutil.c                                            */
      5 /* target system:   ALL                                                  */
      6 /* target OS:       ALL                                                  */
      7 /*                                                                       */
      8 /* Description:                                                          */
      9 /* Some I/O Utilities                                                    */
     10 /*************************************************************************/
     11 
     12 
     13 /*
     14  * Copyright Notice
     15  * Copyright (c) Ericsson, IBM, Lotus, Matsushita Communication
     16  * Industrial Co., Ltd., Motorola, Nokia, Openwave Systems, Inc.,
     17  * Palm, Inc., Psion, Starfish Software, Symbian, Ltd. (2001).
     18  * All Rights Reserved.
     19  * Implementation of all or part of any Specification may require
     20  * licenses under third party intellectual property rights,
     21  * including without limitation, patent rights (such a third party
     22  * may or may not be a Supporter). The Sponsors of the Specification
     23  * are not responsible and shall not be held responsible in any
     24  * manner for identifying or failing to identify any or all such
     25  * third party intellectual property rights.
     26  *
     27  * THIS DOCUMENT AND THE INFORMATION CONTAINED HEREIN ARE PROVIDED
     28  * ON AN "AS IS" BASIS WITHOUT WARRANTY OF ANY KIND AND ERICSSON, IBM,
     29  * LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO. LTD, MOTOROLA,
     30  * NOKIA, PALM INC., PSION, STARFISH SOFTWARE AND ALL OTHER SYNCML
     31  * SPONSORS DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
     32  * BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
     33  * HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
     34  * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
     35  * SHALL ERICSSON, IBM, LOTUS, MATSUSHITA COMMUNICATION INDUSTRIAL CO.,
     36  * LTD, MOTOROLA, NOKIA, PALM INC., PSION, STARFISH SOFTWARE OR ANY
     37  * OTHER SYNCML SPONSOR BE LIABLE TO ANY PARTY FOR ANY LOSS OF
     38  * PROFITS, LOSS OF BUSINESS, LOSS OF USE OF DATA, INTERRUPTION OF
     39  * BUSINESS, OR FOR DIRECT, INDIRECT, SPECIAL OR EXEMPLARY, INCIDENTAL,
     40  * PUNITIVE OR CONSEQUENTIAL DAMAGES OF ANY KIND IN CONNECTION WITH
     41  * THIS DOCUMENT OR THE INFORMATION CONTAINED HEREIN, EVEN IF ADVISED
     42  * OF THE POSSIBILITY OF SUCH LOSS OR DAMAGE.
     43  *
     44  * The above notice and this paragraph must be included on all copies
     45  * of this document that are made.
     46  *
     47  */
     48 
     49 
     50 #ifndef _LIB_UTIL_H
     51 #define _LIB_UTIL_H
     52 
     53 
     54 
     55 /*************************************************************************
     56  *  Definitions
     57  *************************************************************************/
     58 
     59 
     60 #include <smldef.h>
     61 
     62 
     63 #ifdef __ANSI_C__
     64   #include <stdarg.h>
     65 #endif
     66 
     67 #ifdef __PALM_OS__
     68   #ifndef _MSL_CSTDARG
     69     #include <unix_stdarg.h> // only if we don't use MSL
     70   #endif
     71 #endif
     72 
     73 #ifdef __EPOC_OS__
     74   #include <stdarg.h>
     75 #endif
     76 
     77 
     78 /*************************************************************************
     79  *  External Functions
     80  *************************************************************************/
     81 
     82 /* IO functions */
     83 SML_API_DEF void smlLibPrint(const char *text, ...);
     84 SML_API_DEF void smlLibVprintf(const char *format, va_list va);
     85 
     86 
     87 
     88 #endif
     89