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

Function put_asciz

src/burp/mvol.cpp:1709–1725  ·  view source on GitHub ↗

____________________________________________________________ Write an attribute starting with a null terminated string.

Source from the content-addressed store, hash-verified

1707// Write an attribute starting with a null terminated string.
1708//
1709static void put_asciz( SCHAR attribute, const TEXT* str)
1710{
1711 BurpGlobals* tdgbl = BurpGlobals::getSpecific();
1712
1713 USHORT l = strlen(str);
1714 if (l > MAX_UCHAR)
1715 {
1716 BURP_print(false, 343, SafeArg() << int(attribute) << "put_asciz()" << USHORT(MAX_UCHAR));
1717 // msg 343: text for attribute @1 is too large in @2, truncating to @3 bytes
1718 l = MAX_UCHAR;
1719 }
1720
1721 put(tdgbl, attribute);
1722 put(tdgbl, l);
1723 while (l--)
1724 put(tdgbl, *str++);
1725}
1726
1727
1728//____________________________________________________________

Callers 1

write_headerFunction · 0.85

Calls 4

BURP_printFunction · 0.85
putFunction · 0.70
SafeArgClass · 0.50
USHORTEnum · 0.50

Tested by

no test coverage detected