* Fix an error in compilation when Alpine is not built with S/MIME
[alpine.git] / pith / readfile.h
blob4be766f124067f5943b81b23e5d1d1ed12d35d0a
1 /*
2 * $Id: readfile.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006 University of Washington
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * ========================================================================
16 #ifndef PITH_READFILE_INCLUDED
17 #define PITH_READFILE_INCLUDED
21 * Does the string s begin with the UTF-8 Byte Order Mark?
23 #define BOM_UTF8(s) ((s) && (s)[0] && (s)[1] && (s)[2] \
24 && (unsigned char)(s)[0] == 0xef \
25 && (unsigned char)(s)[1] == 0xbb \
26 && (unsigned char)(s)[2] == 0xbf)
30 * Exported Prototypes
32 char *read_file(char *, int);
33 int our_copy(char *, char *);
35 #endif /* PITH_READFILE_INCLUDED */