blobZero()

Sets blob length to len bytes and initialize the blob with "0".

Synopsis

int blobZero(blob &target, int len);

Parameters

Parameter Description
&target The Blob
len Length of the blob

Return Value

With an error -1, otherwise the length of the blob.

Errors

Missing or wrong arguments

Descriptions

If data are sent in a blob, then the data have to be treated with CTRL functions for using the data in CTRL. The function blobZero() sets the blob length to len an initialize the blob with "0".

Example

main()
{
  blob target;
  int len;
  string s;
  s = "FFAB003A";
  target = s;
  DebugN(target);
  len = 30;
  DebugN("Blob Zero : " + blobZero(target, len ));
}

Assignment

Blob functions

Availability

CTRL