2 * EBCDIC to ASCII conversion
4 * This function moved here from arch/powerpc/platforms/iseries/viopath.c
6 * (C) Copyright 2000-2004 IBM Corporation
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) anyu later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software Foundation,
20 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 #include <linux/module.h>
26 unsigned char e2a(unsigned char x)
106 unsigned char* strne2a(unsigned char *dest, const unsigned char *src, size_t n)
112 for (i = 0; i < n; i++)
113 dest[i] = e2a(src[i]);