u_char

This is a discussion on u_char within the C Programming forums, part of the General Programming Boards category; Dear all, if I have u_char one; u_char two; u_char list; how can I append one and two to list? ...

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    7

    u_char

    Dear all,

    if I have

    u_char one;
    u_char two;
    u_char list;

    how can I append one and two to list?

    thanks in advance

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,310
    That depends on what is u_char and what you mean by "append".
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    7
    for eg:
    u_char is unsigned char

    u_char one = 0xA1;
    u_char two = 0xEF;
    u_char three = 0x34;

    then list should be A1EF34

    and the list can continue to expand

  4. #4
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,310
    Ah. What solution do you have in mind?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

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