#include "yproto.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <sys/time.h>
Go to the source code of this file.
|
| int | ymemfind (const u8 *haystack, u32 haystack_len, const u8 *needle, u32 needle_len) |
| |
| int | ysprintf_s (char *dst, unsigned dstsize, const char *fmt,...) |
| |
| YRETCODE | ystrcat_s (char *dst, unsigned dstsize, const char *src) |
| |
| YRETCODE | ystrcpy_s (char *dst, unsigned dstsize, const char *src) |
| |
| char * | ystrdup_s (const char *src) |
| |
| YRETCODE | ystrncat_s (char *dst, unsigned dstsize, const char *src, unsigned len) |
| |
| YRETCODE | ystrncpy_s (char *dst, unsigned dstsize, const char *src, unsigned arglen) |
| |
| static unsigned | ystrnlen (const char *src, unsigned maxlen) |
| |
| int | yvsprintf_s (char *dst, unsigned dstsize, const char *fmt, va_list arg) |
| |
| #define __FILE_ID__ "ymemory" |
| #define _CRT_SECURE_NO_DEPRECATE |
| #define YMEMORY_ALLOW_MALLOC |
| int ymemfind |
( |
const u8 * |
haystack, |
|
|
u32 |
haystack_len, |
|
|
const u8 * |
needle, |
|
|
u32 |
needle_len |
|
) |
| |
| int ysprintf_s |
( |
char * |
dst, |
|
|
unsigned |
dstsize, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
| YRETCODE ystrcat_s |
( |
char * |
dst, |
|
|
unsigned |
dstsize, |
|
|
const char * |
src |
|
) |
| |
| YRETCODE ystrcpy_s |
( |
char * |
dst, |
|
|
unsigned |
dstsize, |
|
|
const char * |
src |
|
) |
| |
| char* ystrdup_s |
( |
const char * |
src | ) |
|
| YRETCODE ystrncat_s |
( |
char * |
dst, |
|
|
unsigned |
dstsize, |
|
|
const char * |
src, |
|
|
unsigned |
len |
|
) |
| |
| YRETCODE ystrncpy_s |
( |
char * |
dst, |
|
|
unsigned |
dstsize, |
|
|
const char * |
src, |
|
|
unsigned |
arglen |
|
) |
| |
| static unsigned ystrnlen |
( |
const char * |
src, |
|
|
unsigned |
maxlen |
|
) |
| |
|
static |
| int yvsprintf_s |
( |
char * |
dst, |
|
|
unsigned |
dstsize, |
|
|
const char * |
fmt, |
|
|
va_list |
arg |
|
) |
| |