Waitrud Weber’s blog

things and reminders for memories

Language Support: Windows-make: Reading Files: UTF-16( Unicode ): As your Language:

Before use of m_compare: We create a function which can wet buffer length so that we could use like the below: int a = m_compare( b_dummy, "\r\n", 2 );

---
.\array_counter.cpp  Tue Jul 28 16:17:54 2020

---
259 ://
260 ://
261 ://
262 ://
263 ://
264 ://
265 :int m_compare ( char* tkn, char* m ) {
266 :
267 :	int a = level_error_msg;
268 :	level_error_msg = 6;
269 :	err_msg_006("function: m_compare:");
270 :
271 :	int count_t = array_count( tkn );
272 :	int count_m = array_count( m );
273 :
274 ://	err_msg_006(" %d | %d | %s | %s \r\n", count_t, count_m, tkn, m );
275 :
276 :	if ( count_t != count_m ) {
277 :		level_error_msg =  a;
278 :		return -1;
279 :	}
280 :
281 :	// match;
282 :	for ( int i=0; i< count_t; i++ ) {
283 :		char c_t = tkn[i];
284 :		char c_m = m[i];
285 :		if ( c_t != c_m ) {
286 :			level_error_msg =  a;
287 :			return -1;
288 :		 }
289 :	}
290 :
291 :	level_error_msg =  a;
292 :	return 1;
293 :}
294 :
---
:  https://github.com/WaitrudWeber/source_zip/blob/master/analyzer_20200729.zip