Raised This Month: $ Target: $400
 0% 

contatini() and its realisation in some plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-15-2009 , 12:16   Re: some question about contatini() and its realisation in some plugin
Reply With Quote #2

The way that small c parses strings in function calls is why this works.
Basically if you have a string of: new hi[5] = "Hello". That's
[0]: h
[1]: e
...
[4]: o
[5]: ^0 //null terminated string

If you pass to a function check( hi[2] ), what gets passes is check( "llo" ).

So in your example since j is null aka. 0 its passing a starting point of the string at 0.
There was a good post about this in snippets/tutorial by Twilight Suzuka.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode