FreeRDP
TestThreadCommandLineToArgv.c File Reference
#include <stdio.h>
#include <winpr/crt.h>
#include <winpr/thread.h>

Functions

static int test_command_line_parsing_case (const char *line, const char **list)
 
int TestThreadCommandLineToArgv (int argc, char *argv[])
 

Variables

const char * test_args_line_1 = "app.exe abc d e"
 
const char * test_args_list_1 []
 
const char * test_args_line_2 = "app.exe abc \t def"
 
const char * test_args_list_2 []
 
const char * test_args_line_3 = "app.exe \"abc\" d e"
 
const char * test_args_list_3 []
 
const char * test_args_line_4 = "app.exe a\\\\b d\"e f\"g h"
 
const char * test_args_list_4 []
 
const char * test_args_line_5 = "app.exe a\\\\\\\"b c d"
 
const char * test_args_list_5 []
 
const char * test_args_line_6 = "app.exe a\\\\\\\\\"b c\" d e"
 
const char * test_args_list_6 []
 
const char * test_args_line_7 = "app.exe a\\\\\\\\\"b c\" d e f\\\\\\\\\"g h\" i j"
 
const char * test_args_list_7 []
 

Function Documentation

static int test_command_line_parsing_case ( const char *  line,
const char **  list 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char* test_args_line_1 = "app.exe abc d e"
const char* test_args_line_2 = "app.exe abc \t def"
const char* test_args_line_3 = "app.exe \"abc\" d e"
const char* test_args_line_4 = "app.exe a\\\\b d\"e f\"g h"
const char* test_args_line_5 = "app.exe a\\\\\\\"b c d"
const char* test_args_line_6 = "app.exe a\\\\\\\\\"b c\" d e"
const char* test_args_line_7 = "app.exe a\\\\\\\\\"b c\" d e f\\\\\\\\\"g h\" i j"
const char* test_args_list_1[]
Initial value:
=
{
"app.exe",
"abc",
"d",
"e",
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:104
const char* test_args_list_2[]
Initial value:
=
{
"app.exe",
"abc",
"def",
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:104
const char* test_args_list_3[]
Initial value:
=
{
"app.exe",
"abc",
"d",
"e",
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:104
const char* test_args_list_4[]
Initial value:
=
{
"app.exe",
"a\\\\b",
"de fg",
"h",
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:104
const char* test_args_list_5[]
Initial value:
=
{
"app.exe",
"a\\\"b",
"c",
"d",
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:104
const char* test_args_list_6[]
Initial value:
=
{
"app.exe",
"a\\\\b c",
"d",
"e",
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:104
const char* test_args_list_7[]
Initial value:
=
{
"app.exe",
"a\\\\b c",
"d",
"e",
"f\\\\g h",
"i",
"j",
}
if availableBytes return NULL
Definition: TPCircularBuffer.h:104