Post: [RELEASE] [SPRX] printf() function
08-14-2014, 10:38 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); hi ngu, i was recently testing something and was getting errors so i decided to make a printf because its very useful for debugging and ik theres the console_write function by shark but his only supports 1string parmeter so this is pretty much a revamp i gusse cause it uses the same sys call... anyways here it is Smile
    
void printf(int n,...)
{
void* lol;
va_list a;
va_start(a,n);
lol = va_arg(a,void*);
uint32_t len;
system_call_4(403, 0, (uint64_t)lol, 32, (uint64_t) &len);
va_end(a);
}

use like:
    
/*
*printf:
*usage: print values to the console
*parameters:
*first: number of values to be printed
*values to be printed(__VA_ARGS__)
*/
printf(3,"ayy lmao","( ͡° ͜ʖ ͡°)",4);

enjoy Happy
credits:
Shark - original function
(adsbygoogle = window.adsbygoogle || []).push({});

The following 10 users say thank you to milky4444 for this useful post:

.MrRedDoT, EvilFerg, ImAzazel, LaRip8, John, Notorious, OLDSCHOOLMODZHD, Raz0rMind, Swaqq, wdegrgefwef

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo