| 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> |
|---|---|---|
| ||
| Previous by Date: | Re: The problems in comp.lang.c, Antoninus Twink |
|---|---|
| Next by Date: | Re: The problems in comp.lang.c, Richard |
| Previous by Thread: | Re: Convert native character string to ASCII array of integers, Tomás Ó hÉilidhe |
| Next by Thread: | Re: Convert native character string to ASCII array of integers, Richard Heathfield |
| Indexes: | [Date] [Thread] [Top] [All Lists] |