mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.plugin/ndisasm: upgraded to latest version
git-svn-id: svn://ultimatepp.org/upp/trunk@2525 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2021b448a9
commit
0d2b0a3a58
36 changed files with 26481 additions and 7445 deletions
25
uppsrc/plugin/ndisasm/lib/snprintf.c
Normal file
25
uppsrc/plugin/ndisasm/lib/snprintf.c
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* snprintf()
|
||||
*
|
||||
* Implement snprintf() in terms of vsnprintf()
|
||||
*/
|
||||
|
||||
#include "compiler.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "nasmlib.h"
|
||||
|
||||
int snprintf(char *str, size_t size, const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
int rv;
|
||||
|
||||
va_start(ap, format);
|
||||
rv = vsnprintf(str, size, format, ap);
|
||||
va_end(ap);
|
||||
|
||||
return rv;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue