Functions | Variables
unit1398.c File Reference
#include "curlcheck.h"
#include "curl/mprintf.h"
Include dependency graph for unit1398.c:

Go to the source code of this file.

Functions

 fail_unless (rc==3,"return code should be 3")
 fail_unless (!strcmp(output,"bug"),"wrong output")
 fail_unless (rc==2,"return code should be 2")
 fail_unless (!strcmp(output,"bu"),"wrong output")
 fail_unless (!strcmp(output,"012"),"wrong output")
 fail_unless (rc==8,"return code should be 8")
 fail_unless (!strcmp(output,"bug "),"wrong output")
 fail_unless (!strcmp(output," bu"),"wrong output")
 fail_unless (rc==4,"return code should be 4")
 fail_unless (!strcmp(output,"102"),"wrong output")
 fail_unless (rc==16,"return code should be 16")
 fail_unless (!strcmp(output," bug bu"),"wrong output")
 fail_unless (!strcmp(output," 1234 567"),"wrong output")
static CURLcode unit_setup (void)
static void unit_stop (void)

Variables

char buf [3] = {'b', 'u', 'g'}
char output [24]
UNITTEST_START int rc = curl_msnprintf(output, 4, "%.*s", width, buf)
const char * str = "bug"
int width = 3

Function Documentation

fail_unless ( rc  = =3,
"return code should be 3"   
)
fail_unless ( strcmpoutput,"bug",
"wrong output  
)
fail_unless ( rc  = =2,
"return code should be 2"   
)
fail_unless ( strcmpoutput,"bu",
"wrong output  
)
fail_unless ( strcmpoutput,"012",
"wrong output  
)
fail_unless ( rc  = =8,
"return code should be 8"   
)
fail_unless ( strcmpoutput,"bug ",
"wrong output  
)
fail_unless ( strcmpoutput," bu",
"wrong output  
)
fail_unless ( rc  = =4,
"return code should be 4"   
)
fail_unless ( strcmpoutput,"102",
"wrong output  
)
fail_unless ( rc  = =16,
"return code should be 16"   
)
fail_unless ( strcmpoutput," bug bu",
"wrong output  
)
fail_unless ( strcmpoutput," 1234 567",
"wrong output  
)
static CURLcode unit_setup ( void  ) [static]

Definition at line 26 of file unit1398.c.

static void unit_stop ( void  ) [static]

Definition at line 27 of file unit1398.c.


Variable Documentation

char buf[3] = {'b', 'u', 'g'}

Definition at line 32 of file unit1398.c.

char output[24]

Definition at line 35 of file unit1398.c.

rc = curl_msnprintf(output, 4, "%.*s", width, buf)

Definition at line 31 of file unit1398.c.

const char* str = "bug"

Definition at line 33 of file unit1398.c.

width = 3

Definition at line 34 of file unit1398.c.



rc_visard_driver
Author(s): Heiko Hirschmueller , Christian Emmerich , Felix Ruess
autogenerated on Thu Jun 6 2019 20:43:09