A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/utils_2unittests_2smp_8c_source.html below:

NCBI C++ ToolKit: src/dbapi/driver/ftds14/freetds/utils/unittests/smp.c Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

30 #include <freetds/bool.h> 40

fprintf(stderr,

"%d: Wrong number, expected %s got %s\n"

, line, s,

out

);

46 #define same_smp(n, s) same_smp(n, s, __LINE__) 52

fprintf(stderr,

"%d: Wrong number, expected %d got %d\n"

, line,

expected

,

n

);

56 #define same_int(n, e) same_int(n, e, __LINE__)

std::ofstream out("events_result.xml")

main entry point for tests

static const char * expected[]

int strcmp(const char *str1, const char *str2)

smp smp_negate(smp a)

returns opposite of a

double smp_to_double(smp a)

converts to double

bool smp_is_negative(smp a)

checks if number is negative

int smp_cmp(smp a, smp b)

compare a and b, returns >0 if a > b, <0 if a < b, 0 if a == b

smp smp_add(smp a, smp b)

sum a and b

char * smp_to_string(smp a)

converts to strings, must be freed with free()

smp smp_from_int(int64_t n)

convert int64 to multiple precision

smp smp_sub(smp a, smp b)

subtract a and b


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4