Macros | Functions
ymemory.c File Reference
#include "yproto.h"
#include <stdlib.h>
#include <stdarg.h>
#include <stdio.h>
#include <sys/time.h>
Include dependency graph for ymemory.c:

Go to the source code of this file.

Macros

#define __FILE_ID__   "ymemory"
 
#define _CRT_SECURE_NO_DEPRECATE
 
#define YMEMORY_ALLOW_MALLOC
 

Functions

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)
 

Macro Definition Documentation

#define __FILE_ID__   "ymemory"

Definition at line 40 of file ymemory.c.

#define _CRT_SECURE_NO_DEPRECATE

Definition at line 42 of file ymemory.c.

#define YMEMORY_ALLOW_MALLOC

Definition at line 43 of file ymemory.c.

Function Documentation

int ymemfind ( const u8 *  haystack,
u32  haystack_len,
const u8 *  needle,
u32  needle_len 
)

Definition at line 373 of file ymemory.c.

int ysprintf_s ( char *  dst,
unsigned  dstsize,
const char *  fmt,
  ... 
)

Definition at line 298 of file ymemory.c.

YRETCODE ystrcat_s ( char *  dst,
unsigned  dstsize,
const char *  src 
)

Definition at line 293 of file ymemory.c.

YRETCODE ystrcpy_s ( char *  dst,
unsigned  dstsize,
const char *  src 
)

Definition at line 277 of file ymemory.c.

char* ystrdup_s ( const char *  src)

Definition at line 284 of file ymemory.c.

YRETCODE ystrncat_s ( char *  dst,
unsigned  dstsize,
const char *  src,
unsigned  len 
)

Definition at line 337 of file ymemory.c.

YRETCODE ystrncpy_s ( char *  dst,
unsigned  dstsize,
const char *  src,
unsigned  arglen 
)

Definition at line 308 of file ymemory.c.

static unsigned ystrnlen ( const char *  src,
unsigned  maxlen 
)
static

Definition at line 270 of file ymemory.c.

int yvsprintf_s ( char *  dst,
unsigned  dstsize,
const char *  fmt,
va_list  arg 
)

Definition at line 357 of file ymemory.c.



yoctopuce_altimeter
Author(s): Anja Sheppard
autogenerated on Mon Jun 10 2019 15:49:13