1 Apr 2003 22:35
addition: binary-io.h
Bruno Haible <bruno <at> clisp.org>
2003-04-01 20:35:59 GMT
2003-04-01 20:35:59 GMT
A new module which allows to set file descriptors to binary mode on platforms where this makes a difference. Mostly taken from coreutils. OK to add? Bruno ========================== binary-io.h ========================== /* Binary mode I/O. Copyright (C) 2001 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef _BINARY_H #define _BINARY_H #include <fcntl.h> /* For systems that distinguish between text and binary I/O.(Continue reading)
Bruno
Would you please ensure that the max line length doesn't exceed 80?
> extern void u8_possible_linebreaks (const unsigned char *s, size_t n, const char *encoding, char *p);
...
> extern int u8_width_linebreaks (const unsigned char *s, size_t n, int width, int start_column, int
RSS Feed