LDM_GET_VSTR

Section: ()
Updated: 06 October 2005
Index Return to Main Contents

 

NAME

ldm_get_vstr - Read a length-prefixed string into a buffer  

SYNOPSIS

"SYNOPSIS"

int ldm_get_vstr (const u8 * block, u8 * buffer, int buflen);  

ARGUMENTS

block
Pointer to the length marker
buffer
Location to copy string to
buflen
Size of the output buffer
 

DESCRIPTION

Many of the strings in the LDM Database are not NULL terminated. Instead they are prefixed by a one byte length marker. This function copies one of these strings into a buffer.

N.B. This function DOES NOT perform any range checking on the input. If the buffer is too small, the output will be truncated.  

RETURN

0, Error and buffer contents are undefined n, String length in characters (excluding NULL) buflen-1, String was truncated.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
RETURN

This document was created by man2html, using the manual pages.
Time: 06:20:56 GMT, October 06, 2005