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

Function StringToCobol

src/gpre/languages/fbrmclib.cpp:475–484  ·  view source on GitHub ↗

Store a C string into a COBOL PIC X field

Source from the content-addressed store, hash-verified

473
474// Store a C string into a COBOL PIC X field
475static void StringToCobol(argument_entry *arg, const ISC_UCHAR *s)
476{
477 if (arg->a_address)
478 {
479 memset(arg->a_address, ' ', arg->a_length);
480 memmove(arg->a_address,
481 s,
482 strlen((char *)s) > arg->a_length ? arg->a_length : strlen((char *)s));
483 }
484}
485
486// Store a status vector into a Cobol array of BINARY(4) fields
487static void StatusToCobol(argument_entry *arg, const ISC_STATUS *stat)

Callers 1

RM_ENTRYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected