The 'Pawn Language' Forum

An embedded scripting language

 

Reply To This Topic    Back To Forum Index
 
Boris Estudiez
Posted On 2009-10-14 18:47 -- Subject: Native Printf

Hi,

I´m new in PAWN and I need to implement the printf() function
in my system to print characters on my LCD screen.

My question is, how can I implement a native function that accepts variable argument list for use with my existing C library printf() function ?.

I have read the Implementers Guide, but does not mention
native functions with variable argument list.

Thanks a lot.

Boris Estudiez.-

BAILOPAN



website

Posted On 2009-10-15 02:18 -- Subject: RE: Native Printf

It is just like normal functions, except each variadic argument is by reference. You can get the number of parameters (variadic and fixed) with |params[0] / sizeof(cell)|
Boris Estudiez
Posted On 2009-10-16 23:02 -- Subject: RE: Native Printf

Thanks BAILOPAN!.

My native printf() works now.
cheap shoes
Posted On 2009-12-09 04:12 -- Subject: RE: Native Printf

welcome to www.okeywecan.com.
We sit the right inscription are: High Quality + Brand New + Quick Shipping + Secure Payment
our sell Adidas Jacket,,<a href="http://www.okeywecan.com/">Adidas Soccer</a>,<a href="http://www.okeywecan.com/">Nike Running Shoes</a>,<a href="http://www.okeywecan.com/">Nike Air Force One</a>,<a href="http://www.okeywecan.com/">Adidas 2009</a>,Nike Air Yeezy,Air force shoes, Jordan max , Jordan mix Air force UGG, ED Hardy, CA, Air max 87, max 90, max 95, max

You Are On Page: 1/1 <<   <   1   >   >>




- BiTBOARD version 2.5 by the BiTSHiFTERS SDC -