• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 // -*- c++ -*-
19 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
20 
21 //               O S C L_ S N P R I N T F
22 
23 //    This is a portable implementation of snprintf() for use on all
24 //    platforms supported by oscl.
25 
26 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
27 
28 /*! \addtogroup osclutil OSCL Util
29  *
30  * @{
31  */
32 
33 
34 /*!
35  * \file oscl_snprintf.h
36  * \brief Provides a portable implementation of snprintf
37  *
38  */
39 
40 
41 #ifndef OSCL_SNPRINTF_H_INCLUDED
42 #define OSCL_SNPRINTF_H_INCLUDED
43 
44 // - - Inclusion - - - - - - - - - - - - - - - - - - - - - - - - - - - -
45 
46 #ifndef OSCL_BASE_H_INCLUDED
47 #include "oscl_base.h"
48 #endif
49 
50 #ifndef OSCLCONFIG_UTIL_H_INCLUDED
51 #include "osclconfig_util.h"
52 #endif
53 
54 OSCL_IMPORT_REF int32 oscl_snprintf(char *str, uint32 count, const char *fmt, /*args*/ ...);
55 OSCL_IMPORT_REF int32 oscl_snprintf(oscl_wchar *str, uint32 count, const oscl_wchar *fmt, /*args*/ ...);
56 OSCL_IMPORT_REF int32 oscl_vsnprintf(char *str, uint32 count, const char *fmt, va_list args);
57 OSCL_IMPORT_REF int32 oscl_vsnprintf(oscl_wchar *str, uint32 count, const oscl_wchar *fmt, va_list args);
58 #endif
59 
60 /*! @} */
61