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

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

Function Documentation

◆ test_command_line_parsing_case()

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:

◆ TestThreadCommandLineToArgv()

int TestThreadCommandLineToArgv ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

Variable Documentation

◆ test_args_line_1

const char* test_args_line_1 = "app.exe abc d e"
static

◆ test_args_line_2

const char* test_args_line_2 = "app.exe abc \t def"
static

◆ test_args_line_3

const char* test_args_line_3 = "app.exe \"abc\" d e"
static

◆ test_args_line_4

const char* test_args_line_4 = "app.exe a\\\\b d\"e f\"g h"
static

◆ test_args_line_5

const char* test_args_line_5 = "app.exe a\\\\\\\"b c d"
static

◆ test_args_line_6

const char* test_args_line_6 = "app.exe a\\\\\\\\\"b c\" d e"
static

◆ test_args_line_7

const char* test_args_line_7 = "app.exe a\\\\\\\\\"b c\" d e f\\\\\\\\\"g h\" i j"
static

◆ test_args_list_1

const char* test_args_list_1[] = { "app.exe", "abc", "d", "e", NULL }
static

◆ test_args_list_2

const char* test_args_list_2[] = { "app.exe", "abc", "def", NULL }
static

◆ test_args_list_3

const char* test_args_list_3[] = { "app.exe", "abc", "d", "e", NULL }
static

◆ test_args_list_4

const char* test_args_list_4[] = { "app.exe", "a\\\\b", "de fg", "h", NULL }
static

◆ test_args_list_5

const char* test_args_list_5[] = { "app.exe", "a\\\"b", "c", "d", NULL }
static

◆ test_args_list_6

const char* test_args_list_6[] = { "app.exe", "a\\\\b c", "d", "e", NULL }
static

◆ test_args_list_7

const char* test_args_list_7[]
static
Initial value:
= { "app.exe", "a\\\\b c", "d", "e",
"f\\\\g h", "i", "j", NULL }
NULL
if availableBytes return NULL
Definition: TPCircularBuffer.h:109