Compaq AA-RH99A-TE Remote Starter User Manual


 
return(False);
}
3.2.24 Returning a Line of kdbx Output
The read_line function returns the next line of the output from the last
kdbx command executed. If the end of the output is reached, this function
returns NULL and a status of OK. If the status is something other than OK
when the function returns NULL, an error occurred.
This function has the following format:
char* read_line(
Status* status);
Argument
Input/Output
Description
status
Output Contains the status of the request, which
is OK for successful requests
For example:
while((line = read_line(&status)) != NULL){
print(line);
free(line);
}
3.2.25 Reading an Area of Memory
The read_memory function reads an area of memory starting at the
address you specify and running for the number of bytes you specify. The
read_memory function returns TRUE if successful and FALSE if there was
an error.
This function has the following format:
Boolean read_memory(
long start_addr,
int n,
char* buf,
char** error);
Argument
Input/Output
Description
start_addr
Input Specifies the starting address for the read
n
Input Specifies the number of bytes to read
buf
Output Returns the memory contents
error
Output Returns a pointer to an error message if
the return value is FALSE
3–18 Writing Extensions to the kdbx Debugger