YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

How to get string length from C?
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?
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
Users browsing this topic
Guest
Forum Jump  
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.

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.