1scf2read(3) Staden Package scf2read(3)
2
3
4
6 scf2read, read2scf, exp2read, read2exp - Translate to and from the Read
7 structure.
8
9
11 #include <Read.h>
12
13 Read *scf2read(
14 Scf *scf);
15
16 Scf *read2scf(
17 Read *read);
18
19 Exp_info *read2exp(
20 Read *read,
21 char *EN);
22
23 Read *exp2read(
24 Exp_info *e);
25
26
28 These functions are used internally by the io library for converting
29 between the in memory representations of the supported file formats.
30 The Read structure is the central format so only conversion to and from
31 this structure is available. Conversions consist of to and from the SCF
32 format and to and from the Experiment File format.
33
34 scf2read() converts an Scf structure into a Read structure. The Read
35 structure is allocated by the function. The Scf structure is left
36 unchanged.
37
38 read2scf() converts a Read structure into an Scf structure. The Scf
39 structure is allocated by the function. The Read structure is left
40 unchanged.
41
42 exp2read() converts an Exp_info structure into a Read structure. The
43 entryname to use in the EN line type of the Experiment File must be
44 specified. The Read structure is allocated by the function. The
45 Exp_info structure is left unchanged.
46
47 read2exp() converts a Read structure into an Exp_info structure. The
48 Exp_info structure is allocated by the function. The Read structure is
49 left unchanged.
50
51
53 On successful completion, the scf2read() and exp2read functions return
54 a pointer to an allocated Read structure. Otherwise these functions
55 return NULLRead.
56
57 On successful completion, the read2scf function returns a pointer to an
58 allocated Scf structure. Otherwise this function returns a null
59 pointer.
60
61 On successful completion, the read2exp function returns a pointer to an
62 allocated Exp_info structure. Otherwise this function returns a null
63 pointer.
64
65
67 read_reading(3), fread_reading(3), write_reading(3), fwrite_reading(3),
68 scf(4), ExperimentFile(4)
69
70
71
72 scf2read(3)