1read_scf(3)                     Staden Package                     read_scf(3)
2
3
4

NAME

6       read_scf, fread_scf, read_scf_header - Read SCF files
7
8

SYNOPSIS

10       #include <scf.h>
11
12       Scf *read_scf(
13            char *fn);
14
15       Scf *fread_scf(
16            FILE *fp);
17
18       int read_scf_header(
19            FILE *fp,
20            Header *h);
21
22

DESCRIPTION

24       These  functions read SCF format trace files. All the functions accept‐
25       ing a FILE * as an argument assume that the file pointer is at the cor‐
26       rect offset within the file.
27
28       read_scf()  reads  an  entire  SCF file into the Scf structure (see the
29       scf(4) manual page for the details of this structure). The data is read
30       from the specified file name.
31
32       fread_scf()  reads  an  entire SCF file into the Scf structure (see the
33       scf(4) manual page for the details of this structure). The data is read
34       from  the  specified  file  pointer, which is neither closed or rewound
35       after the operation.
36
37       read_scf_header() reads the Header structure from  the  specified  file
38       pointer.
39
40

RETURN VALUES

42       On  successful  completion,  the  read_scf()  and fread_scf() functions
43       return a pointer to a Scf structure. Othewise these functions return  a
44       null pointer.
45
46       On  successful  completion,  the  read_scf_header() function returns 0.
47       Otherwise the function returns -1.
48
49

SEE ALSO

51       scf(4), write_scf(3)
52
53
54
55                                                                   read_scf(3)
Impressum