/[LeafOK_CVS]/lbbs/include/io.h
ViewVC logotype

Diff of /lbbs/include/io.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.22 by sysadm, Sat Oct 18 01:50:48 2025 UTC Revision 1.26 by sysadm, Tue Nov 4 13:49:50 2025 UTC
# Line 1  Line 1 
1  /***************************************************************************  /* SPDX-License-Identifier: GPL-3.0-or-later */
2                                                          io.h  -  description  /*
3                                                           -------------------   * io
4          Copyright            : (C) 2004-2025 by Leaflet   *   - basic terminal-based user input / output features
5          Email                : leaflet@leafok.com   *
6   ***************************************************************************/   * Copyright (C) 2004-2025 by Leaflet <leaflet@leafok.com>
7     */
 /***************************************************************************  
  *                                                                         *  
  *   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 3 of the License, or     *  
  *   (at your option) any later version.                                   *  
  *                                                                         *  
  ***************************************************************************/  
8    
9  #ifndef _IO_H_  #ifndef _IO_H_
10  #define _IO_H_  #define _IO_H_
# Line 99  Line 91 
91  #define DOECHO (1)  #define DOECHO (1)
92  #define NOECHO (0)  #define NOECHO (0)
93    
94    #define BBS_DEFAULT_CHARSET "UTF-8"
95    
96    extern char stdio_charset[20];
97    
98  extern int prints(const char *format, ...);  extern int prints(const char *format, ...);
99  extern int outc(char c);  extern int outc(char c);
100  extern int iflush(void);  extern int iflush(void);
# Line 108  extern int igetch_t(int sec); Line 104  extern int igetch_t(int sec);
104  extern void igetch_reset(void);  extern void igetch_reset(void);
105    
106  extern int io_buf_conv(iconv_t cd, char *p_buf, int *p_buf_len, int *p_buf_offset, char *p_conv, size_t conv_size, int *p_conv_len);  extern int io_buf_conv(iconv_t cd, char *p_buf, int *p_buf_len, int *p_buf_offset, char *p_conv, size_t conv_size, int *p_conv_len);
107    extern int io_conv_init(const char *charset);
108    extern int io_conv_cleanup(void);
109    
110  #endif //_IO_H_  #endif //_IO_H_


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1