GDB (xrefs)
Functions
cli-utils.c File Reference
#include "defs.h"
#include "cli/cli-utils.h"
#include "value.h"
#include <ctype.h>

Go to the source code of this file.

Functions

int get_number_trailer (const char **pp, int trailer)
 
int get_number (const char **pp)
 
int get_number (char **pp)
 
int number_is_in_list (const char *list, int number)
 
const char * remove_trailing_whitespace (const char *start, const char *s)
 
std::string extract_arg (const char **arg)
 
std::string extract_arg (char **arg)
 
int check_for_argument (const char **str, const char *arg, int arg_len)
 

Function Documentation

◆ check_for_argument()

int check_for_argument ( const char **  str,
const char *  arg,
int  arg_len 
)

◆ extract_arg() [1/2]

std::string extract_arg ( const char **  arg)

◆ extract_arg() [2/2]

std::string extract_arg ( char **  arg)

Definition at line 284 of file cli-utils.c.

References extract_arg(), and string.

◆ get_number() [1/2]

int get_number ( const char **  pp)

◆ get_number() [2/2]

int get_number ( char **  pp)

Definition at line 118 of file cli-utils.c.

References get_number_trailer().

◆ get_number_trailer()

int get_number_trailer ( const char **  pp,
int  trailer 
)

◆ number_is_in_list()

int number_is_in_list ( const char *  list,
int  number 
)

◆ remove_trailing_whitespace()

const char* remove_trailing_whitespace ( const char *  start,
const char *  s 
)