Sha256: ce7e1600acb9ed063517c563d2cd8e1f543375db5b190cbdc67c96b6b8d3f8c7

Contents?: true

Size: 442 Bytes

Versions: 234

Compression:

Stored size: 442 Bytes

Contents

/*
 * Copyright (c) 2007 Wayne Meissner. All rights reserved.
 *
 * For licensing, see LICENSE.SPECS
 */

#include <string.h>

int 
string_equals(const char* s1, const char* s2)
{
    return strcmp(s1, s2) == 0;
}

void 
string_set(char* s1, const char* s2)
{
    strcpy(s1, s2);
}
void
string_concat(char* dst, const char* src)
{
    strcat(dst, src);
}
void
string_dummy(char* dummy)
{
}
const char*
string_null(void)
{
    return NULL;
}

Version data entries

234 entries across 129 versions & 21 rubygems

Version Path
tdiary-5.0.4 vendor/bundle/gems/ffi-1.9.18/spec/ffi/fixtures/StringTest.c
tdiary-5.0.4 vendor/bundle/gems/ffi-1.9.18/libtest/StringTest.c
ffi-1.9.18-x86-mingw32 libtest/StringTest.c
ffi-1.9.18-x86-mingw32 spec/ffi/fixtures/StringTest.c
ffi-1.9.18-x64-mingw32 libtest/StringTest.c
ffi-1.9.18-x64-mingw32 spec/ffi/fixtures/StringTest.c
ffi-1.9.18 spec/ffi/fixtures/StringTest.c
ffi-1.9.18 libtest/StringTest.c
ffi-1.9.17-x64-mingw32 libtest/StringTest.c
ffi-1.9.17-x64-mingw32 spec/ffi/fixtures/StringTest.c
ffi-1.9.17-x86-mingw32 spec/ffi/fixtures/StringTest.c
ffi-1.9.17-x86-mingw32 libtest/StringTest.c
ffi-1.9.17 spec/ffi/fixtures/StringTest.c
ffi-1.9.17 libtest/StringTest.c
ffi-1.9.16-x64-mingw32 spec/ffi/fixtures/StringTest.c
ffi-1.9.16-x64-mingw32 libtest/StringTest.c
ffi-1.9.16-x86-mingw32 libtest/StringTest.c
ffi-1.9.16-x86-mingw32 spec/ffi/fixtures/StringTest.c
ffi-1.9.16 libtest/StringTest.c
ffi-1.9.16 spec/ffi/fixtures/StringTest.c