Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Functions
0.strncmp.cpp File Reference
#include <rw_valcmp.h>
#include <stdio.h>
Include dependency graph for 0.strncmp.cpp:

Go to the source code of this file.

Macros

#define TEST(expect, s1, s2, nc, fl)
 

Functions

int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ TEST

#define TEST (   expect,
  s1,
  s2,
  nc,
  fl 
)
Value:
do { \
const int result = (fl) < 0 ? \
rw_strncmp (s1, s2, nc) : rw_strncmp (s1, s2, nc, fl); \
if (expect != result) { \
exit_status = 2; \
fprintf (stderr, "line %d: rw_strncmp(%p, %p, %u, %d) == %d, " \
"got %d\n", __LINE__, (const void*)s1, \
(const void*)s2, unsigned (nc), fl, expect, \
result); \
} \
} while (0)
int exit_status
#define s1
Definition 17.names.cpp:242
#define s2
Definition 17.names.cpp:268
volatile int result
#define stderr
_TEST_EXPORT int rw_strncmp(const char *, const char *, _RWSTD_SIZE_T=_RWSTD_SIZE_MAX, int=CMP_NULTERM)

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 187 of file 0.strncmp.cpp.