1 | /* |
1 | /* |
2 | parse_aux.c - Part of psiconv, a PSION 5 file formats converter |
2 | parse_aux.c - Part of psiconv, a PSION 5 file formats converter |
3 | Copyright (c) 1999-2004 Frodo Looijaard <frodol@dds.nl> |
3 | Copyright (c) 1999-2014 Frodo Looijaard <frodo@frodo.looijaard.name> |
4 | |
4 | |
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
… | |
… | |
44 | for (i = 0; i < psiconv_unicode_strlen(input); i ++) |
44 | for (i = 0; i < psiconv_unicode_strlen(input); i ++) |
45 | if (input[i] < 0x20 || input[i] >= 0x7f) |
45 | if (input[i] < 0x20 || input[i] >= 0x7f) |
46 | output[i] = '.'; |
46 | output[i] = '.'; |
47 | else |
47 | else |
48 | output[i] = input[i]; |
48 | output[i] = input[i]; |
49 | input[i] = 0; |
49 | output[i] = 0; |
50 | return output; |
50 | return output; |
51 | } |
51 | } |