"Fossies" - the Fresh Open Source Software Archive 
Member "zsync-0.6.2/format_string.h" (16 Sep 2010, 918 Bytes) of package /linux/privat/old/zsync-0.6.2.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "format_string.h" see the
Fossies "Dox" file reference documentation.
1 /*
2 * zsync - client side rsync over http
3 * Copyright (C) 2004,2005 Colin Phipps <cph@moria.org.uk>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the Artistic License v2 (see the accompanying
7 * file COPYING for the full license terms), or, at your option, any later
8 * version of the same license.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * COPYING file for details.
14 */
15
16 #include <inttypes.h>
17
18 #ifdef PRIu32
19 # define SIZE_T_PF "%zd"
20 #else
21 # define SIZE_T_PF "%u"
22 #endif
23
24 #if SIZEOF_OFF_T == 8
25 # ifdef PRIu64
26 # define OFF_T_PF "%" PRIu64
27 # else
28 # define OFF_T_PF "%llu"
29 # endif
30 #else
31 # ifdef PRIu32
32 # define OFF_T_PF "%" PRIu32
33 # else
34 # define OFF_T_PF "%lu"
35 # endif
36 #endif
37