MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / copy_exact_name

Function copy_exact_name

src/yvalve/array.cpp:415–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413
414
415static void copy_exact_name (const char* from, char* to, SSHORT bsize)
416{
417/**************************************
418 *
419 * c o p y _ e x a c t _ n a m e
420 *
421 **************************************
422 *
423 * Functional description
424 * Copy null terminated name ot stops at bsize - 1.
425 *
426 **************************************/
427 const char* const from_end = from + bsize - 1;
428 char* to2 = to - 1;
429 while (*from && from < from_end)
430 {
431 if (*from != ' ') {
432 to2 = to;
433 }
434 *to++ = *from++;
435 }
436 *++to2 = 0;
437}
438
439
440static ISC_STATUS error(ISC_STATUS* status, const Arg::StatusVector& v)

Callers 2

iscArrayLookupDescImplFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected