comp.lang.c
[Top] [All Lists]

Re: Convert native character string to ASCII array of integers

Subject: Re: Convert native character string to ASCII array of integers
From: Tomás Ó hÉilidhe
Date: Fri, 28 Mar 2008 06:18:16 -0700 PDT
Newsgroups: comp.lang.c

On Mar 28, 1:09 pm, Tomás Ó hÉilidhe <t...@xxxxxxxxxxx> wrote:

>        *pos = strchr(ascii,*pc) - ascii + ' ';


That space should of course be the ASCII value for space:

    *pos = strchr(ascii,*pc) - ascii + 0x20;

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy