libc.obj:

- now using vsscanf from BaseLibc;
 - delete extra pragma
 - disable sort includes(clang-format)

git-svn-id: svn://kolibrios.org@9868 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat
2022-08-02 13:30:05 +00:00
parent a7f779193d
commit ec9a93aa6a
13 changed files with 531 additions and 603 deletions

View File

@@ -8,24 +8,23 @@
#include <sys/ksys.h>
#include <errno.h>
#include <limits.h>
//#include "format_print.h"
int vsprintf (char * s, const char * format, va_list arg)
int vsprintf(char* s, const char* format, va_list arg)
{
return vsnprintf(s, STDIO_MAX_MEM, format, arg);
}
int vprintf ( const char * format, va_list arg )
int vprintf(const char* format, va_list arg)
{
int len = 0;
char *s = malloc(STDIO_MAX_MEM);
if(!s){
errno = ENOMEM;
return errno;
}
con_init();
len = vsnprintf(s, STDIO_MAX_MEM, format, arg);
con_write_string(s, len);
free(s);
return(len);
int len = 0;
char* s = malloc(STDIO_MAX_MEM);
if (!s) {
errno = ENOMEM;
return errno;
}
con_init();
len = vsnprintf(s, STDIO_MAX_MEM, format, arg);
con_write_string(s, len);
free(s);
return (len);
}