kprintf.c
lib/kprintf.h
sys/video.h
ubixos/kpanic.h
stdarg.h
ubixos/kpanic.h
src/sys/lib/kprintf.c
stdarg.h
ubixos/types.h
sys/_types.h
sys/video.h
lib/kprintf.h
int int kprintf (const char *fmt,...) kprintf const char * fmt ... kprint printOff vaEnd vaStart vsprintf
int int sprintf (char *buf, const char *fmt,...) sprintf char * buf const char * fmt ... vaEnd vaStart vsprintf
int int ogprintOff ogprintOff 0x1
int int printOff printOff 0x0

    /*****************************************************************************************
    Copyright(c)2002TheUbixOSProject
    Allrightsreserved.

    Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,are
    permittedprovidedthatthefollowingconditionsaremet:

    Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistof
    conditions,thefollowingdisclaimerandthelistofauthors.Redistributionsinbinary
    formmustreproducetheabovecopyrightnotice,thislistofconditions,thefollowing
    disclaimerandthelistofauthorsinthedocumentationand/orothermaterialsprovided
    withthedistribution.NeitherthenameoftheUbixOSProjectnorthenamesofits
    contributorsmaybeusedtoendorseorpromoteproductsderivedfromthissoftware
    withoutspecificpriorwrittenpermission.

    THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANY
    EXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOF
    MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALL
    THECOPYRIGHTOWNERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,
    SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENT
    OFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,OR
    TORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHIS
    SOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

    $Id: kprintf_8c.xml 88 2016-01-12 00:11:29Z reddawg $

    *****************************************************************************************/

    #include<lib/kprintf.h>
    #include<sys/video.h>
    #include<ubixos/kpanic.h>
    #include<stdarg.h>

    intprintOff=0x0;
    intogprintOff=0x1;

    intkprintf(constchar*fmt,...){
    charbuf[512];
    vaListargs;
    inti=0x0;
    vaStart(args,fmt);
    i=vsprintf(buf,fmt,args);
    vaEnd(args);
    if(printOff==0x0)
    kprint(buf);

    return(i);
    }

    intsprintf(char*buf,constchar*fmt,...){
    vaListargs;
    inti;
    vaStart(args,fmt);
    i=vsprintf(buf,fmt,args);
    vaEnd(args);
    return(i);
    }

    /***
    END
    ***/