~ubuntu-branches/ubuntu/warty/curl/warty

« back to all changes in this revision

Viewing changes to include/curl/mprintf.h

  • Committer: Bazaar Package Importer
  • Author(s): Domenico Andreoli
  • Date: 2004-06-04 19:09:25 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040604190925-wy048bp31320r2z6
Tags: 7.12.0.is.7.11.2-1
* Reverted to version 7.11.2 (closes: #252348).
* Disabled support for libidn (closes: #252367). This is to leave
  curl in unstable as much similar as possible to the one in testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*************************************************************************
2
 
 *
3
 
 * $Id: mprintf.h,v 1.6 2001/08/15 18:17:14 bagder Exp $
4
 
 *
5
 
 * Permission to use, copy, modify, and distribute this software for any
6
 
 * purpose with or without fee is hereby granted, provided that the above
7
 
 * copyright notice and this permission notice appear in all copies.
8
 
 *
9
 
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
10
 
 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
11
 
 * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
12
 
 * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
13
 
 *
14
 
 *************************************************************************
15
 
 *
16
 
 * Preliminary documentation
17
 
 *
18
 
 * printf conversions:
19
 
 *
20
 
 *  conversion ::= '%%' | '%' [position] ( number | float | string )
21
 
 *  position ::= digits '$'
22
 
 *  number ::= [number-flags] ( 'd' | 'i' | 'o' | 'x' | 'X' | 'u')
23
 
 *  number-flags ::= 'h' | 'l' | 'L' ...
24
 
 *  float ::= [float-flags] ( 'f' | 'e' | 'E' | 'g' | 'G' )
25
 
 *  string ::= [string-flags] 's'
26
 
 *  string-flags ::= padding | '#'
27
 
 *  digits ::= (digit)+
28
 
 *  digit ::= 0-9
29
 
 *
30
 
 *  c
31
 
 *  p
32
 
 *  n
33
 
 *
34
 
 * qualifiers
35
 
 *
36
 
 *  -     : left adjustment
37
 
 *  +     : show sign
38
 
 *  SPACE : padding
39
 
 *  #     : alterative
40
 
 *  .     : precision
41
 
 *  *     : width
42
 
 *  0     : padding / size
43
 
 *  1-9   : size
44
 
 *  h     : short
45
 
 *  l     : long
46
 
 *  ll    : longlong
47
 
 *  L     : long double
48
 
 *  Z     : long / longlong
49
 
 *  q     : longlong
50
 
 *
51
 
 ************************************************************************/
 
1
/***************************************************************************
 
2
 *                                  _   _ ____  _     
 
3
 *  Project                     ___| | | |  _ \| |    
 
4
 *                             / __| | | | |_) | |    
 
5
 *                            | (__| |_| |  _ <| |___ 
 
6
 *                             \___|\___/|_| \_\_____|
 
7
 *
 
8
 * Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
 
9
 *
 
10
 * This software is licensed as described in the file COPYING, which
 
11
 * you should have received as part of this distribution. The terms
 
12
 * are also available at http://curl.haxx.se/docs/copyright.html.
 
13
 * 
 
14
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
 
15
 * copies of the Software, and permit persons to whom the Software is
 
16
 * furnished to do so, under the terms of the COPYING file.
 
17
 *
 
18
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 
19
 * KIND, either express or implied.
 
20
 *
 
21
 * $Id: mprintf.h,v 1.8 2004/01/07 09:19:34 bagder Exp $
 
22
 ***************************************************************************/
52
23
 
53
24
#ifndef H_MPRINTF
54
25
#define H_MPRINTF