Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

snprintf.cc File Reference

#include <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include "common.h"
#include "global.h"
#include "tools.h"
#include "config.h"

Go to the source code of this file.

Defines

#define LDOUBLE   double
#define LLONG   long
#define DP_S_DEFAULT   0
#define DP_S_FLAGS   1
#define DP_S_MIN   2
#define DP_S_DOT   3
#define DP_S_MAX   4
#define DP_S_MOD   5
#define DP_S_CONV   6
#define DP_S_DONE   7
#define DP_F_MINUS   (1 << 0)
#define DP_F_PLUS   (1 << 1)
#define DP_F_SPACE   (1 << 2)
#define DP_F_NUM   (1 << 3)
#define DP_F_ZERO   (1 << 4)
#define DP_F_UP   (1 << 5)
#define DP_F_UNSIGNED   (1 << 6)
#define DP_C_SHORT   1
#define DP_C_LONG   2
#define DP_C_LDOUBLE   3
#define DP_C_LLONG   4
#define DP_C_QWORD   5
#define char_to_int(p)   ((p)- '0')
#define MAX_CONVERT_PLACES   40
#define MAX_CONVERT_PLACES   80

Functions

int ht_vsnprintf (char *str, size_t count, const char *fmt, va_list args)
int ht_snprintf (char *str, size_t count, const char *fmt,...)
int ht_vasprintf (char **ptr, const char *format, va_list ap)
int ht_asprintf (char **ptr, const char *format,...)
int ht_vfprintf (FILE *file, const char *fmt, va_list args)
int ht_fprintf (FILE *file, const char *fmt,...)
int ht_vprintf (const char *fmt, va_list args)
int ht_printf (const char *fmt,...)


Define Documentation

#define char_to_int  )     ((p)- '0')
 

Definition at line 134 of file snprintf.cc.

#define DP_C_LDOUBLE   3
 

Definition at line 130 of file snprintf.cc.

#define DP_C_LLONG   4
 

Definition at line 131 of file snprintf.cc.

#define DP_C_LONG   2
 

Definition at line 129 of file snprintf.cc.

#define DP_C_QWORD   5
 

Definition at line 132 of file snprintf.cc.

#define DP_C_SHORT   1
 

Definition at line 128 of file snprintf.cc.

#define DP_F_MINUS   (1 << 0)
 

Definition at line 119 of file snprintf.cc.

#define DP_F_NUM   (1 << 3)
 

Definition at line 122 of file snprintf.cc.

#define DP_F_PLUS   (1 << 1)
 

Definition at line 120 of file snprintf.cc.

#define DP_F_SPACE   (1 << 2)
 

Definition at line 121 of file snprintf.cc.

#define DP_F_UNSIGNED   (1 << 6)
 

Definition at line 125 of file snprintf.cc.

#define DP_F_UP   (1 << 5)
 

Definition at line 124 of file snprintf.cc.

#define DP_F_ZERO   (1 << 4)
 

Definition at line 123 of file snprintf.cc.

#define DP_S_CONV   6
 

Definition at line 115 of file snprintf.cc.

#define DP_S_DEFAULT   0
 

Definition at line 109 of file snprintf.cc.

#define DP_S_DONE   7
 

Definition at line 116 of file snprintf.cc.

#define DP_S_DOT   3
 

Definition at line 112 of file snprintf.cc.

#define DP_S_FLAGS   1
 

Definition at line 110 of file snprintf.cc.

#define DP_S_MAX   4
 

Definition at line 113 of file snprintf.cc.

#define DP_S_MIN   2
 

Definition at line 111 of file snprintf.cc.

#define DP_S_MOD   5
 

Definition at line 114 of file snprintf.cc.

#define LDOUBLE   double
 

Definition at line 83 of file snprintf.cc.

#define LLONG   long
 

Definition at line 89 of file snprintf.cc.

#define MAX_CONVERT_PLACES   80
 

#define MAX_CONVERT_PLACES   40
 


Function Documentation

int ht_asprintf char **  ptr,
const char *  format,
... 
 

Definition at line 916 of file snprintf.cc.

References ht_vasprintf().

int ht_fprintf FILE *  file,
const char *  fmt,
... 
 

Definition at line 943 of file snprintf.cc.

References file, and ht_vfprintf().

int ht_printf const char *  fmt,
... 
 

Definition at line 961 of file snprintf.cc.

References ht_vprintf().

int ht_snprintf char *  str,
size_t  count,
const char *  fmt,
... 
 

Definition at line 887 of file snprintf.cc.

References ht_vsnprintf().

Referenced by Analyser::addAddressSymbol(), ClassAnalyser::beginAnalysis(), ElfAnalyser::beginAnalysis(), MachoAnalyser::beginAnalysis(), PEAnalyser::beginAnalysis(), PEFAnalyser::beginAnalysis(), XBEAnalyser::beginAnalysis(), blockop_int_process(), blockop_str_process(), VfsListbox::changeDir(), ht_text_viewer::clipboard_copy_cmd(), Analyser::dataAccess(), ht_aviewer::dataStringDialog(), Analyser::doBranch(), ht_registry_data_dword::editdialog(), export_func_name(), FileBrowser::extract_url(), file_chooser(), ht_uformat_viewer::func(), AnalyserOutput::generateAddr(), ht_aviewer::get_pindicator_str(), ht_clipboard_viewer::get_pindicator_str(), ht_hex_viewer::get_pindicator_str(), CallChain::get_text(), PEFAnalyser::getSegmentNameByAddress(), SymbolBox::getStr(), ht_project_listbox::getStr(), AnalyserInformation::gettext(), AnalyInfoline::gettext(), ht_undo_data_delete_string::gettext(), ht_undo_data_delete_string2::gettext(), ht_undo_data_insert_string::gettext(), ht_undo_data_overwrite_string::gettext(), ht_undo_data_split_line::gettext(), ht_undo_data_join_line::gettext(), ht_undo_data_insert_block::gettext(), ht_undo_data_delete_block::gettext(), ht_aviewer::handlemsg(), ht_project_window::handlemsg(), ht_app::handlemsg(), ht_file_window::handlemsg(), ht_uformat_viewer::handlemsg(), ht_text_editor::handlemsg(), AnalyserTxtOutput::header(), ht_regex_search_exception::ht_regex_search_exception(), htelfheader_init(), htpefheader_init(), htpefimports_init(), import_func_name(), ht_blockop_dialog::init(), ElfAnalyser::initInsertFakeSymbols(), ElfAnalyser::initInsertSymbols(), AnalyserTxtOutput::link(), load_pal(), ht_app::popup_view_list_dump(), ht_app::popup_window_list(), ht_aviewer::pos_to_string(), ht_text_viewer::ppos_str(), RegistryFs::pstat(), ht_object_stream_txt::putQWordDec(), ht_object_stream_txt::putQWordHex(), ht_aviewer::qword_to_pos(), VfsListbox::renderEntry(), scalar_context_str(), search_bin_process(), ht_aviewer::searchForXRefs(), VfsListbox::selectEntry(), VfsListbox2::selectEntry(), ht_aviewer::showCallChain(), ht_aviewer::showXRefs(), IA64Disassembler::strf(), ht_format_viewer::string_to_qword(), InvalidAddress::stringify(), AddressFlat32::stringify(), AddressFlat64::stringify(), AddressX86Flat32::stringify(), AddressX86_1632::stringify(), AddressX86_1616::stringify(), ht_registry_data_dword::strvalue(), sys_read_data_from_native_clipboard(), token_translate(), Object::toString(), ht_data_string::toString(), VfsListbox::update(), ht_clipboard_viewer::update_content(), and ht_uformat_viewer::vsearch().

int ht_vasprintf char **  ptr,
const char *  format,
va_list  ap
 

Definition at line 898 of file snprintf.cc.

References ht_vsnprintf(), malloc(), and NULL.

Referenced by ht_asprintf(), and ht_vfprintf().

int ht_vfprintf FILE *  file,
const char *  fmt,
va_list  args
 

Definition at line 928 of file snprintf.cc.

References buf, file, ht_vasprintf(), and ht_vsnprintf().

Referenced by ht_fprintf(), and ht_vprintf().

int ht_vprintf const char *  fmt,
va_list  args
 

Definition at line 956 of file snprintf.cc.

References ht_vfprintf().

Referenced by ht_printf().

int ht_vsnprintf char *  str,
size_t  count,
const char *  fmt,
va_list  args
 

Definition at line 879 of file snprintf.cc.

References MIN.

Referenced by ht_view::buf_printf(), ht_logf(), ht_msg_exception::ht_msg_exception(), ht_snprintf(), ht_vasprintf(), ht_vfprintf(), msgbox(), msgboxrect(), set_eval_error(), and set_eval_error_ex().


Generated on Fri May 7 21:15:52 2004 by doxygen 1.3.5