Raised This Month: $ Target: $400
 0% 

Little help:


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-20-2005 , 20:49  
Reply With Quote #5

v3x.. I musta been posting at same time as you!!

9 is the size of the string (meaning it can hold 9 characters), but strings in C must end with a null terminater (you never need have to add it manually in Small C), meaning the MAX amount of characters you can Use is 9 - 1, so 8 characters + 1 null-terminater is the max amount of characters the string can really hold...

So when you call the get_time function you pass it the string you want it to write too (CurTime) and you also tell it how many characters the function is allowed to write..

And the %s is a place-holder for extra values..
Think of like this: the %s will be replaced by a string, what string? the CurTime string that we just made using the get_time function.. how? because the %s is the First place-holder in the string and the CurTime variable is the First extra parameter passed to the function..
xeroblood is offline
Send a message via MSN to xeroblood
 



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 14:12.


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