adjusting character counts for utf8

This is a discussion on adjusting character counts for utf8 within the C Programming forums, part of the General Programming Boards category; >> an int is actually twice as big as a pointer. That's backwards. The int is 32bits and the pointer ...

  1. #31
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,702
    >> an int is actually twice as big as a pointer.
    That's backwards. The int is 32bits and the pointer is 64bits.

    >> Could this explain the pointer weirdness?
    Yep.

    gg

  2. #32
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Quote Originally Posted by happyclown View Post
    You almost got it 100% right.

    But that's what makes tabstop 85%-90% awesome.
    Well, it's not as though we hadn't done this before (towards the end of the thread).

  3. #33
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by tabstop View Post
    I feel younger in that picture!

    You know, I hate to get snippy with poor 'ol tabstop, but you have just presented a great piece of evidence to support my previous accusation ;0
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Character literals incorrectly interpreted
    By DL1 in forum C Programming
    Replies: 11
    Last Post: 04-05-2009, 06:35 PM
  2. <string> to LPCSTR? Also, character encoding: UNICODE vs ?
    By Kurisu33 in forum C++ Programming
    Replies: 7
    Last Post: 10-09-2006, 01:48 AM
  3. Character handling help
    By vandalay in forum C Programming
    Replies: 18
    Last Post: 03-29-2004, 05:32 PM
  4. character occurrence program not working
    By Nutshell in forum C Programming
    Replies: 6
    Last Post: 01-21-2002, 10:31 PM
  5. Replies: 12
    Last Post: 01-12-2002, 09:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21