~ubuntu-branches/ubuntu/utopic/nettle/utopic

« back to all changes in this revision

Viewing changes to examples/io.h

  • Committer: Package Import Robot
  • Author(s): Magnus Holmgren
  • Date: 2013-05-07 22:57:14 UTC
  • mfrom: (8.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130507225714-s331yr8ov53dtt17
Tags: 2.7-2
Tag some (ECC related) symbols that only exist on some architectures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
/* nettle, low-level cryptographics library
7
7
 *
8
 
 * Copyright (C) 2002 Niels M�ller
 
8
 * Copyright (C) 2002 Niels Möller
9
9
 *  
10
10
 * The nettle library is free software; you can redistribute it and/or modify
11
11
 * it under the terms of the GNU Lesser General Public License as published by
19
19
 * 
20
20
 * You should have received a copy of the GNU Lesser General Public License
21
21
 * along with the nettle library; see the file COPYING.LIB.  If not, write to
22
 
 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
23
 
 * MA 02111-1307, USA.
 
22
 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 
23
 * MA 02111-1301, USA.
24
24
 */
25
25
 
26
26
#ifndef NETTLE_EXAMPLES_IO_H_INCLUDED
37
37
xalloc(size_t size);
38
38
 
39
39
void
40
 
werror(const char *format, ...)
41
 
#if __GNUC___
42
 
     __attribute__((__format__ (__printf__,1, 2)))
43
 
#endif
44
 
     ;
45
 
 
46
 
/* If size is > 0, read at most that many bytes. If size == 0,
47
 
 * read until EOF. Allocates the buffer dynamically. */
 
40
werror(const char *format, ...) PRINTF_STYLE(1, 2);
 
41
 
 
42
/* If size is > 0, read at most that many bytes. If size == 0, read
 
43
 * until EOF. Allocates the buffer dynamically. An empty file is
 
44
 * treated as an error; return value is zero, and no space is
 
45
 * allocated. The returned data is NUL-terminated, for convenience. */
 
46
 
48
47
unsigned
49
48
read_file(const char *name, unsigned size, char **buffer);
50
49