torture/t_doschar.c

説明を見る。
00001 /*
00002    Samba - Unix SMB/CIFS implementation
00003    Test harness for check_dos_char
00004    Copyright (C) Martin Pool 2003
00005    
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015    
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 */
00020 
00021 #include "includes.h"
00022 
00023 
00024 /*
00025  * Just print out DOS validity or not for every character.
00026  *
00027  * DOS validity for a Unicode character set means that it can be
00028  * represented in DOS codepage, and that the DOS character maps back
00029  * to the same Unicode character.
00030  *
00031  * This depends on which DOS codepage is configured.
00032  */
00033  int main(void)
00034 {
00035         smb_ucs2_t      i;
00036 
00037         for (i = 0; i < 0xffff; i++) {
00038                 printf("%d %d\n", (int) i, (int) check_dos_char(i));
00039         }
00040         
00041         return 0;
00042 }

Sambaに対してSat Aug 29 21:23:27 2009に生成されました。  doxygen 1.4.7