Sha256: e0de001ffb12819b8dd9c1988e78a4335e5af2168843f4ac3574f00af98fc291

Contents?: true

Size: 935 Bytes

Versions: 80

Compression:

Stored size: 935 Bytes

Contents

/*
wstring.c

diStorm3 - Powerful disassembler for X86/AMD64
http://ragestorm.net/distorm/
distorm at gmail dot com
Copyright (C) 2003-2016 Gil Dabah
This library is licensed under the BSD license. See the file COPYING.
*/


#include "wstring.h"

#ifndef DISTORM_LIGHT

void strclear_WS(_WString* s)
{
	s->p[0] = '\0';
	s->length = 0;
}

void chrcat_WS(_WString* s, uint8_t ch)
{
	s->p[s->length] = ch;
	s->p[s->length + 1] = '\0';
	s->length += 1;
}

void strcpylen_WS(_WString* s, const int8_t* buf, unsigned int len)
{
	s->length = len;
	memcpy((int8_t*)s->p, buf, len + 1);
}

void strcatlen_WS(_WString* s, const int8_t* buf, unsigned int len)
{
	memcpy((int8_t*)&s->p[s->length], buf, len + 1);
	s->length += len;
}

void strcat_WS(_WString* s, const _WString* s2)
{
	memcpy((int8_t*)&s->p[s->length], s2->p, s2->length + 1);
	s->length += s2->length;
}

#endif /* DISTORM_LIGHT */

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
contrast-agent-6.9.0 funchook/distorm/src/wstring.c
contrast-agent-6.8.0 funchook/distorm/src/wstring.c
contrast-agent-6.7.0 funchook/distorm/src/wstring.c
contrast-agent-6.6.5 funchook/distorm/src/wstring.c
contrast-agent-6.6.4 funchook/distorm/src/wstring.c
contrast-agent-6.6.3 funchook/distorm/src/wstring.c
contrast-agent-6.6.2 funchook/distorm/src/wstring.c
contrast-agent-6.6.1 funchook/distorm/src/wstring.c
contrast-agent-6.6.0 funchook/distorm/src/wstring.c
contrast-agent-6.5.1 funchook/distorm/src/wstring.c
contrast-agent-6.5.0 funchook/distorm/src/wstring.c
contrast-agent-6.4.0 funchook/distorm/src/wstring.c
contrast-agent-6.3.0 funchook/distorm/src/wstring.c
contrast-agent-6.2.0 funchook/distorm/src/wstring.c
contrast-agent-6.1.2 funchook/distorm/src/wstring.c
contrast-agent-6.1.1 funchook/distorm/src/wstring.c
contrast-agent-6.1.0 funchook/distorm/src/wstring.c
contrast-agent-6.0.0 funchook/distorm/src/wstring.c
contrast-agent-5.3.0 funchook/distorm/src/wstring.c
contrast-agent-5.2.0 funchook/distorm/src/wstring.c