1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Multibyte string conversions

Discussion in 'C' started by imported_rajeshgalla, Oct 16, 2007.

  1. imported_rajeshgalla

    imported_rajeshgalla New Member

    Joined:
    Oct 10, 2007
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I would like to know what are the C string library functions which are doesn’t support for multibyte data.
    Recently I found that strlen() does not give exact length for multibyte. is there any web-site for that information.
     
  2. Mahesh.Shetye

    Mahesh.Shetye New Member

    Joined:
    Mar 22, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Hey dude,
    U can use mblen() function to get the length of multibyte char string.
     
  3. hkp819

    hkp819 New Member

    Joined:
    Dec 4, 2008
    Messages:
    59
    Likes Received:
    1
    Trophy Points:
    0
    I also use strlen(); string but I have never found any mistake.
    I think it works accurately.
     
  4. heavensgate15

    heavensgate15 New Member

    Joined:
    Mar 18, 2008
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
  5. sarah189

    sarah189 New Member

    Joined:
    Dec 7, 2010
    Messages:
    20
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    India
    Home Page:
    The mbstowcs() function converts the multibyte string addressed by s into the corresponding UNICODE string. It stores up to n wide characters in pwcs. It stops conversion after encountering and storing a null character.
     

Share This Page