Results 1 to 3 of 3

Thread: C and Unicode [Resolved]

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    Resolved C and Unicode [Resolved]

    I was wondering if there was an eqivlant to asc() and chr()
    functions in C for unicode characters ?
    Last edited by señorbadger; Oct 2nd, 2004 at 02:14 PM.

  2. #2
    Fanatic Member twanvl's Avatar
    Join Date
    Dec 2001
    Posts
    771
    If you have a unicode character in a wchar_t you can simply use it as a number.
    Code:
    wchar_t* myString=L"someString";
    myString[0]+=1;

  3. #3

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193
    i looked into it now it tis sorted

    thanks mate

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width