CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2002
    Posts
    4

    How do you convert an unsigned char string to a char string

    I have a value which is an unsigned char string and I need to to a comparison with a regular char string. How do I convert one value to the other?

    Thanks for any help,
    TJ

  2. #2
    Join Date
    Jun 2002
    Posts
    1,417
    just type cast it:

    unsigned char *string1;
    char *string2;

    strcmp( (char *)string1, string2));

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

Featured