[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
USAGE
signed int scdtrget(
signed int handle,
signed long recno,
signed char **data,
signed int command );
PROTOTYPE IN
sc_base.h
DESCRIPTION
scdtrget reads the desired record recno from the memo file
specified by handle. A buffer large enough to hold the text will be
allocated, the address of which is returned in data.
command controls whether or not the soft carriage returns are
stripped. Use SC_CRUNCHNG to leave the soft carriage returns alone, or
use SC_CRDELETE to remove them.
EXAMPLE
#include <stdio.h>
#include <softc.h>
#include <sc_base.h>
void main()
{
int dbt;
char *data;
scdinit(20,0);
if (scdtopenx(&dbt,"TOC.DBT",SC_SHARED) == SC_SUCCESS) {
scdtrget(dbt,1L,&data,SC_CRDELETE);
puts(data);
free(data);
scddclose(dbt);
}
scdterm();
}
See Also:
scdtrget
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson