1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-12-22 22:18:09 +00:00

Added the 'nd_memset' implementation for pydis.

This commit is contained in:
Andrei KISARI 2020-07-27 11:43:41 +03:00
parent d622f56211
commit 9d98a67c70

View File

@ -23,8 +23,8 @@ int nd_to_text(INSTRUX *instrux, size_t rip, size_t bufsize, char *buf)
return NdToText(instrux, rip, bufsize, buf);
}
#include <stdio.h>
#include <string.h>
int
nd_vsnprintf_s(char *str, size_t sizeOfBuffer, size_t count, const char *format, va_list args)
@ -32,3 +32,8 @@ nd_vsnprintf_s(char *str, size_t sizeOfBuffer, size_t count, const char *format,
(void)(sizeOfBuffer);
return vsnprintf(str, count, format, args);
}
int nd_memset(void *s, int c, size_t n)
{
memset(s, c, n);
}