Waitrud Weber’s blog

things and reminders for memories

2019-03-10から1日間の記事一覧

WindowsAPI: System Lootin : get_files :001

Good thing or not. I felt something. 21 :// 22 :// it refers all to 23 :// https://stackoverflow.com/questions/11362771/list-files-in-directory-c 24 :// https://bituse.info/winapi/31 25 :// 26 :// Parameters 27 :// 28 :// lpcstr_path 29 :/…

Difference Between CVS and SVN : 20190310

www.differencebetween.net Probably the biggest improvement to SVN is the addition of ...Read more: Difference Between CVS and SVN | Difference Between | CVS vs SVN http://www.differencebetween.net/technology/difference-between-cvs-and-svn/…

Code Analyzer: Ho do we use string function in C++ in application

The rule of Not dropping application in C++ is only the below: 1. Use allocation like new. so, we must pass Instance to other function as pointer. // aToken *iToken; <- do not use like this. aToken *iToken = nullptr; // <- use like this. c…

Code Analyzer: String function 005

566 :int m_contains ( char* c_str, char* c_ref ) { 567 : 568 : int unmatch = 0; 569 : int ref_length = array_count( c_ref ); 570 : int length = array_count( c_str ); 571 : for ( int i=length -1; i >= 0; i-- ) { 572 : for ( int j=ref_length…

Code Analyzer: String function 004

460 :char* copyof ( char* str ) { 461 : int ac = array_count(str); 462 : char* mem = (char*)malloc( sizeof(char) * (ac + 1) ); 463 : put_memories( mem ); 464 : 465 : for ( int i=0; i

Code Analyzer: String function 003: Sub: put_memories

148 :char** put_memories ( char* str ) { 149 : 150 : if ( dummy_ary_index == 0 ) { 151 : dummy_ary = (char **) malloc( sizeof(char*) ); 152 : dummy_ary_index = 1; 153 : dummy_ary[ 0 ] = str; 154 : } else { 155 : dummy_ary_index++; 156 : du…

Code Analyzer: String function 003: m_replace

104 :char* m_replace ( char* char_string, 105 : char* from_string, char* to_string ) { 106 : char c1, c2; 107 : int count = array_count( char_string ); 108 : int a_f = array_count( from_string ); 109 : int a_t = array_count( to_string ); 1…

Code Analyzer: String function 002

99 :// 100 :// 101 :// 102 :// 103 :// 104 :char* m_replace ( char* char_string, 105 : char* from_string, char* to_string ) { 106 : char c1, c2; 107 : int count = array_count( char_string ); 108 : int a_f = array_count( from_string ); 109 …

Code Analyzer: String function

String function should be necesarily for analyzer. The point of creation of it are: 1: use malloc. 2: put '\0' to the last of char string. 3: do not use std other, otherwise you would have fixed code for inclusion. 4: use garbage collectio…