2 * $Id: readfile.h 761 2007-10-23 22:35:18Z hubert@u.washington.edu $
4 * ========================================================================
5 * Copyright 2013-2017 Eduardo Chappa
6 * Copyright 2006 University of Washington
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PITH_READFILE_INCLUDED
18 #define PITH_READFILE_INCLUDED
22 * Does the string s begin with the UTF-8 Byte Order Mark?
24 #define BOM_UTF8(s) ((s) && (s)[0] && (s)[1] && (s)[2] \
25 && (unsigned char)(s)[0] == 0xef \
26 && (unsigned char)(s)[1] == 0xbb \
27 && (unsigned char)(s)[2] == 0xbf)
33 char *read_file(char *, int);
34 int our_copy(char *, char *);
36 #endif /* PITH_READFILE_INCLUDED */