Thread: C-char* string

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    29

    C-char* string

    whats the prefix C in C-char* string suppose to mean? is it to show that char is a constant?

  2. #2
    The larch
    Join Date
    May 2006
    Posts
    3,573
    My guess would be that it simply refers to the C language. Perhaps some context where you saw this might help?
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  3. #3
    Registered User
    Join Date
    Dec 2008
    Posts
    32
    I'm with anon-

    It most likely simply refers to a C pointer, and I might add I've never once seen that exact phrase used. But if one hangs out on Win32 VB and C# forums, (and hate to put Delphi in there but I must), one is bound to see all sorts of similar abominations.

    When you are passing strings between things (such as DLL's) you need to know exactly what kind of strings they are. (Null-terminated? Length-prefixed? etc)

    I suppose "C-char*" seems as good as the next. *shrug* I'd love to see the context there as well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. compare structures
    By lazyme in forum C++ Programming
    Replies: 15
    Last Post: 05-28-2009, 02:40 AM
  2. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 04:30 PM
  3. Message class ** Need help befor 12am tonight**
    By TransformedBG in forum C++ Programming
    Replies: 1
    Last Post: 11-29-2006, 11:03 PM
  4. Classes inheretance problem...
    By NANO in forum C++ Programming
    Replies: 12
    Last Post: 12-09-2002, 03:23 PM
  5. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM