Welcome Guest
Search
|
Active Topics
|
Log In
|
Register
ERROR
Squirrel - The Programming Language
»
General
»
Embedding
»
How to get string length from C?
How to get string length from C?
Options
Previous Topic
Next Topic
tromin
#1
Posted :
Monday, April 30, 2012 9:30:56 AM(UTC)
Rank: Newbie
Groups: Registered
Joined: 4/30/2012(UTC)
Posts: 1
Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Is there a way to get string length from C code if that string have embedded nul characters?
Back to top
User Profile
View Thanks
fagiano
#2
Posted :
Monday, April 30, 2012 4:39:16 PM(UTC)
Rank: Advanced Member
Groups: Registered, Administrators
Joined: 6/11/2005(UTC)
Posts: 825
Thanks: 0 times
Was thanked: 36 time(s) in 29 post(s)
squirrel's strings are zero terminated but you can also use sq_getsize() on the stack object.
Alberto
Back to top
User Profile
View Thanks
Users browsing this topic
Guest
Squirrel - The Programming Language
»
General
»
Embedding
»
How to get string length from C?
Forum Jump
General
- The Language
- Embedding
- Bindings
Development
- Squirrel language review Board
- Squirrel API review Board
- Bugs
Forum
- Stuff
You
cannot
post new topics in this forum.
You
cannot
reply to topics in this forum.
You
cannot
delete your posts in this forum.
You
cannot
edit your posts in this forum.
You
cannot
create polls in this forum.
You
cannot
vote in polls in this forum.
Watch this topic
Email this topic
Print this topic
RSS Feed
Normal
Threaded
Clean Slate theme by Jaben Cargman (
Tiny Gecko
)
Powered by YAF 1.9.4
|
YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.066 seconds.