chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] length of string in C code


From: Heinrich Taube
Subject: [Chicken-users] length of string in C code
Date: Mon, 28 Apr 2008 16:45:10 -0500

Hello,can someone please tell me how to turn something that is C_Stringp into either (1) A NULL terminated C string or (2) A buffer of chars plus the number of chars in the buffer? from what i can tell by the docs it seems that a C_string is not null terminated. i could deal with that except i dont know how to determine its length.


if ( C_truep(C_blockp(w)) && C_truep( C_Stringp( w ) )) {
  int len = ???
  char* buf = ???
}


thanks for any help,
        --rick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]